From: Maria Matejka Date: Fri, 16 Aug 2019 19:15:49 +0000 (+0200) Subject: Static check: Don't report dead code X-Git-Tag: v2.0.8~77^2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7482209065a03c3186d74e5e4129539ce7a3ce4;p=thirdparty%2Fbird.git Static check: Don't report dead code --- diff --git a/Makefile.in b/Makefile.in index cf94e3520..2698e34db 100644 --- a/Makefile.in +++ b/Makefile.in @@ -184,8 +184,9 @@ check: tests tests_run tests: $(tests_targets) tests_run: $(tests_targets_ok) -STATIC_CHECKERS := nullability.NullableDereferenced nullability.NullablePassedToNonnull nullability.NullableReturnedFromNonnull optin.portability.UnixAPI valist.CopyToSelf valist.Uninitialized valist.Unterminated -STATIC_SCAN_FLAGS := --force-analyze-debug-code -o $(objdir)/static-scan/ $(addprefix -enable-checker ,$(STATIC_CHECKERS)) +STATIC_CHECKERS_ENABLE := nullability.NullableDereferenced nullability.NullablePassedToNonnull nullability.NullableReturnedFromNonnull optin.portability.UnixAPI valist.CopyToSelf valist.Uninitialized valist.Unterminated +STATIC_CHECKERS_DISABLE := deadcode.DeadStores +STATIC_SCAN_FLAGS := --force-analyze-debug-code -o $(objdir)/static-scan/ $(addprefix -enable-checker ,$(STATIC_CHECKERS_ENABLE)) $(addprefix -disable-checker ,$(STATIC_CHECKERS_DISABLE)) static-scan: $(E)echo Running static code analysis