From 753d199bc9e16080dbe1aec5e075b4176613cc81 Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Mon, 20 May 2024 03:43:40 +0000 Subject: [PATCH] build: remove clean dependency from cppcheck targets (#6343) Cleaning does not appear to make a difference; the same amount of files is checked with/without cleaning. Environment: cppcheck 2.12.0-3 on Artix Linux. Added on commit 4e22add64 ("llvm scan", 2015-11-29). This is a follow-up to #6222. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d4fc32f669..12d0d57a58 100644 --- a/Makefile +++ b/Makefile @@ -361,13 +361,13 @@ extras: all $(MAKE) -C extras/firetools .PHONY: cppcheck -cppcheck: clean +cppcheck: $(CPPCHECK) --force --error-exitcode=1 --enable=warning,performance \ -i src/firejail/checkcfg.c -i src/firejail/main.c . # For cppcheck 1.x; see .github/workflows/check-c.yml .PHONY: cppcheck-old -cppcheck-old: clean +cppcheck-old: $(CPPCHECK) --force --error-exitcode=1 --enable=warning,performance . .PHONY: scan-build