From 6c67dfeb720653b687321c536e225a7518b79b43 Mon Sep 17 00:00:00 2001 From: Dianne Skoll Date: Tue, 7 Oct 2025 15:44:37 -0400 Subject: [PATCH] Use a cppcheck-build-dir --- .gitignore | 1 + src/Makefile.in | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 654591f3..cef71a87 100644 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,4 @@ tests/once.timestamp tests/test.out tests/tz.out www/Makefile +_cppcheck diff --git a/src/Makefile.in b/src/Makefile.in index 19be79cb..5424bfda 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -109,7 +109,9 @@ depend: # distributions, etc. cppcheck: - cppcheck -j`nproc` -v --force --enable=all --suppress=missingIncludeSystem --suppress=ConfigurationNotChecked --suppress=unmatchedSuppression --suppress=variableScope --inline-suppr --check-level=exhaustive . + mkdir -p ../_cppcheck + cppcheck -j`nproc` -v --force --enable=all --suppress=missingIncludeSystem --suppress=ConfigurationNotChecked --suppress=unmatchedSuppression --suppress=variableScope --inline-suppr --check-level=exhaustive --cppcheck-build-dir=../_cppcheck . + -rm -rf ../_cppcheck # Build a tar file based on all files checked into git. distro: