Skip to content

Commit

Permalink
Disable difficult/unhelpful CppCheck warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lefticus committed Apr 27, 2022
1 parent 235115d commit 948679f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,17 @@ dynamic_project_options(
# MSVC_WARNINGS # Override the defaults for the MSVC warnings
# CLANG_WARNINGS # Override the defaults for the CLANG warnings
# GCC_WARNINGS # Override the defaults for the GCC warnings
# CPPCHECK_OPTIONS # Override the defaults for CppCheck
CPPCHECK_OPTIONS
--enable=style,performance,warning,portability
--inline-suppr
# We cannot act on a bug/missing feature of cppcheck
--suppress=cppcheckError
--suppress=internalAstError
# if a file does not have an internalAstError, we get an unmatchedSuppression error
--suppress=unmatchedSuppression
--suppress=passedByValue
--suppress=syntaxError
--inconclusive
)

target_compile_features(project_options INTERFACE cxx_std_${CMAKE_CXX_STANDARD})
Expand Down

0 comments on commit 948679f

Please sign in to comment.