diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 497a40594ae..81fd6458cdb 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -125,9 +125,9 @@ if (BUILD_TESTS) --error-exitcode=1 --disable=missingInclude --inline-suppr - --template="{file}:{line}:{severity}:{id}:{message}" --debug-warnings --suppress=valueFlowBailout + --suppress=purgedConfiguration --suppress=unmatchedSuppression ${CMAKE_CURRENT_SOURCE_DIR}/cfg/${CFG_TEST} ) diff --git a/test/cfg/runtests.sh b/test/cfg/runtests.sh index 310686eabe3..4a51f7c6d1a 100755 --- a/test/cfg/runtests.sh +++ b/test/cfg/runtests.sh @@ -27,7 +27,7 @@ CFG="$DIR"../../cfg/ # TODO: remove missingInclude disabling when it no longer is implied by --enable=information # Cppcheck options # need to suppress unmatchedSuppression in case valueFlowBailout is not reported -CPPCHECK_OPT='--check-library --platform=unix64 --enable=style,information --inconclusive --force --error-exitcode=-1 --disable=missingInclude --inline-suppr --template="{file}:{line}:{severity}:{id}:{message}" --debug-warnings --suppress=valueFlowBailout --suppress=unmatchedSuppression' +CPPCHECK_OPT='--check-library --platform=unix64 --enable=style,information --inconclusive --force --error-exitcode=-1 --disable=missingInclude --inline-suppr --template="{file}:{line}:{severity}:{id}:{message}" --debug-warnings --suppress=valueFlowBailout --suppress=purgedConfiguration --suppress=unmatchedSuppression' # Compiler settings CXX=g++