Suppressed compiler warnings during testing cfg tests.
This commit is contained in:
parent
b3cc4629a6
commit
38cba67115
|
@ -9,18 +9,23 @@ else # assume we are in repo root
|
||||||
DIR=./test/cfg/
|
DIR=./test/cfg/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Compiler settings
|
||||||
|
CXX=g++
|
||||||
|
CC=gcc
|
||||||
|
CC_OPT='-Wno-nonnull -fsyntax-only'
|
||||||
|
|
||||||
# posix.c
|
# posix.c
|
||||||
gcc -fsyntax-only ${DIR}posix.c
|
${CC} ${CC_OPT} ${DIR}posix.c
|
||||||
${CPPCHECK} --check-library --library=posix --enable=information --enable=style --error-exitcode=1 --suppress=missingIncludeSystem --inline-suppr ${DIR}posix.c
|
${CPPCHECK} --check-library --library=posix --enable=information --enable=style --error-exitcode=1 --suppress=missingIncludeSystem --inline-suppr ${DIR}posix.c
|
||||||
|
|
||||||
# gnu.c
|
# gnu.c
|
||||||
gcc -fsyntax-only -D_GNU_SOURCE ${DIR}gnu.c
|
${CC} ${CC_OPT} -D_GNU_SOURCE ${DIR}gnu.c
|
||||||
${CPPCHECK} --check-library --library=gnu --enable=information --enable=style --error-exitcode=1 --suppress=missingIncludeSystem --inline-suppr ${DIR}gnu.c
|
${CPPCHECK} --check-library --library=gnu --enable=information --enable=style --error-exitcode=1 --suppress=missingIncludeSystem --inline-suppr ${DIR}gnu.c
|
||||||
|
|
||||||
# windows.cpp
|
# windows.cpp
|
||||||
#g++ -fsyntax-only ${DIR}windows.cpp
|
#${CXX} -fsyntax-only ${DIR}windows.cpp
|
||||||
${CPPCHECK} --check-library --library=windows --enable=information --enable=style --error-exitcode=1 --inline-suppr ${DIR}windows.cpp
|
${CPPCHECK} --check-library --library=windows --enable=information --enable=style --error-exitcode=1 --inline-suppr ${DIR}windows.cpp
|
||||||
|
|
||||||
# std.c
|
# std.c
|
||||||
gcc -fsyntax-only ${DIR}std.c
|
${CC} ${CC_OPT} ${DIR}std.c
|
||||||
${CPPCHECK} --check-library --enable=information --error-exitcode=1 --enable=style --suppress=missingIncludeSystem --inline-suppr ${DIR}std.c
|
${CPPCHECK} --check-library --enable=information --error-exitcode=1 --enable=style --suppress=missingIncludeSystem --inline-suppr ${DIR}std.c
|
||||||
|
|
Loading…
Reference in New Issue