]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Static check: Don't report dead code
authorMaria Matejka <mq@ucw.cz>
Fri, 16 Aug 2019 19:15:49 +0000 (21:15 +0200)
committerMaria Matejka <mq@ucw.cz>
Tue, 28 Apr 2020 14:25:14 +0000 (16:25 +0200)
Makefile.in

index cf94e35201aa7e9a5ac21f3b0d1637ad8155d589..2698e34dbe38c4b0aa058c76ab7fb0695a1a2480 100644 (file)
@@ -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