Skip to content

Commit

Permalink
Suppress some cppcheck warnings. (#878)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrood-nrel authored Jul 14, 2023
1 parent 9dd9e0e commit c4be308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/amr-wind-utils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ macro(init_code_checks)
COMMAND ${CMAKE_COMMAND} -E make_directory cppcheck
# cppcheck ignores -isystem directories, so we change them to regular -I include directories (with no spaces either)
COMMAND sed "s/isystem /I/g" ${CMAKE_BINARY_DIR}/compile_commands.json > cppcheck_compile_commands.json
COMMAND ${CPPCHECK_EXE} --template=gcc --inline-suppr --suppress=unusedFunction --suppress=useStlAlgorithm --std=c++17 --language=c++ --enable=all --project=cppcheck_compile_commands.json -i ${CMAKE_SOURCE_DIR}/submods/amrex/Src -i ${CMAKE_SOURCE_DIR}/submods/AMReX-Hydro -i ${CMAKE_SOURCE_DIR}/submods/googletest --output-file=cppcheck-full-report.txt -j ${NP}
COMMAND ${CPPCHECK_EXE} --template=gcc --inline-suppr --suppress=unusedFunction --suppress=useStlAlgorithm --suppress=missingIncludeSystem --std=c++17 --language=c++ --enable=all --project=cppcheck_compile_commands.json -i ${CMAKE_SOURCE_DIR}/submods/amrex/Src -i ${CMAKE_SOURCE_DIR}/submods/AMReX-Hydro -i ${CMAKE_SOURCE_DIR}/submods/googletest --output-file=cppcheck-full-report.txt -j ${NP}
COMMENT "Run cppcheck on project compile_commands.json"
BYPRODUCTS cppcheck-full-report.txt
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/cppcheck
Expand Down

0 comments on commit c4be308

Please sign in to comment.