diff --git a/cmake/cppcheck.cmake b/cmake/cppcheck.cmake index 0f0416429527034f4cb413afef17df299c27f293..686a8abcdc7132a7208ec6163aaed78d9768d5c5 100644 --- a/cmake/cppcheck.cmake +++ b/cmake/cppcheck.cmake @@ -36,7 +36,7 @@ else() message(STATUS "Use cppcheck from: ${CPPCHECK_COMMAND}") endif() -set(CPPCHECK_ARGUMENTS --enable=warning,performance,portability,missingInclude,unusedFunction,style --error-exitcode=1 --quiet --verbose) +set(CPPCHECK_ARGUMENTS --enable=warning,performance,portability,missingInclude,style --suppress=unusedFunction --error-exitcode=1 --quiet --verbose) if(MSVC) list(APPEND CPPCHECK_ARGUMENTS --template=vs) elseif(CLANG)