aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2024-02-24 03:49:54 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2024-02-24 18:53:07 -0300
commit1f6400bd89913d804b9803394c9c1bb629a7e97f (patch)
tree88ecbb7d94ca2a2a430048afd8e4c0b071d2176d
parentbuild: sync cppcheck targets with CI (diff)
downloadfirejail-1f6400bd89913d804b9803394c9c1bb629a7e97f.tar.gz
firejail-1f6400bd89913d804b9803394c9c1bb629a7e97f.tar.zst
firejail-1f6400bd89913d804b9803394c9c1bb629a7e97f.zip
build: sync scan-build target with CI
Changes: * Use --status-bugs in the scan-build target to exit with an error if bugs are found * Call the make target in the CI job
-rw-r--r--.github/workflows/check-c.yml6
-rw-r--r--Makefile2
2 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/check-c.yml b/.github/workflows/check-c.yml
index c308e3620..b4ff6fd9c 100644
--- a/.github/workflows/check-c.yml
+++ b/.github/workflows/check-c.yml
@@ -67,11 +67,11 @@ jobs:
67 run: ./ci/printenv.sh 67 run: ./ci/printenv.sh
68 - name: configure 68 - name: configure
69 run: > 69 run: >
70 CC=clang-14 ./configure --enable-fatal-warnings --enable-apparmor 70 ./configure CC=clang-14 SCAN_BUILD=scan-build-14
71 --enable-selinux 71 --enable-fatal-warnings --enable-apparmor --enable-selinux
72 || (cat config.log; exit 1) 72 || (cat config.log; exit 1)
73 - name: scan-build 73 - name: scan-build
74 run: scan-build-14 --status-bugs make 74 run: make scan-build
75 75
76 cppcheck: 76 cppcheck:
77 runs-on: ubuntu-22.04 77 runs-on: ubuntu-22.04
diff --git a/Makefile b/Makefile
index d6d4f098c..dcd84b7ab 100644
--- a/Makefile
+++ b/Makefile
@@ -374,7 +374,7 @@ cppcheck-old: clean
374 374
375.PHONY: scan-build 375.PHONY: scan-build
376scan-build: clean 376scan-build: clean
377 $(SCAN_BUILD) $(MAKE) 377 $(SCAN_BUILD) --status-bugs $(MAKE)
378 378
379# TODO: Old codespell versions (such as v2.1.0 in CI) have issues with 379# TODO: Old codespell versions (such as v2.1.0 in CI) have issues with
380# contrib/syscalls.sh 380# contrib/syscalls.sh