ci: Disable scan-build’s dead code checker

It’s not highlighting severe bugs for us, and currently generates 132
out of 172 of the scan-build reports, so let’s disable it for now.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Helps: #1767
This commit is contained in:
Philip Withnall 2024-04-04 00:28:06 +01:00
parent 2dfd9518e1
commit 165ae8c8a7
No known key found for this signature in database
GPG Key ID: DCDF5885B1F3ED73

View File

@ -728,6 +728,8 @@ scan-build:
variables:
# FIXME: Eventually we want static analysis on the tests, for code quality,
# but for the moment its just busywork.
# FIXME: Disable the dead code checkers for now because they create a lot of
# noise and dont indicate high severity problems.
SCAN_BUILD_FLAGS: >-
--exclude gio/tests/
--exclude girepository/tests/
@ -735,6 +737,7 @@ scan-build:
--exclude gmodule/tests/
--exclude gobject/tests/
--exclude gthread/tests/
-disable-checker deadcode.DeadStores
script:
- meson setup ${MESON_COMMON_OPTIONS}
--werror