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

View File

@ -35,5 +35,5 @@ ${CPPCHECK} ${CPPCHECK_OPT} ${DIR}std.cpp
# windows.cpp # windows.cpp
#${CXX} -fsyntax-only ${DIR}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