Correct posix.cfg to avoid false positives. Fix runtests.sh

This commit is contained in:
Alexander Mai 2016-01-15 00:11:48 +01:00
parent 85b12252d5
commit 161412dc31
2 changed files with 3 additions and 7 deletions

View File

@ -2602,9 +2602,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
<function name="wait">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1">
<not-null/>
</arg>
<arg nr="1"/>
</function>
<!-- pid_t waitpid(pid_t pid, int *stat_loc, int options); -->
<function name="waitpid">
@ -2613,9 +2611,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2">
<not-null/>
</arg>
<arg nr="2"/>
<arg nr="3">
<not-uninit/>
</arg>

View File

@ -35,5 +35,5 @@ ${CPPCHECK} ${CPPCHECK_OPT} ${DIR}std.cpp
# windows.cpp
#${CXX} -fsyntax-only ${DIR}windows.cpp
${CPPCHECK} --check-library --enable=information --enable=style --error-exitcode=1 --inline-suppr --library=windows ${DIR}windows.cpp
${CPPCHECK} --check-library --enable=information --enable=style --error-exitcode=1 --inline-suppr --library=windows.cfg ${DIR}windows.cpp