mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-26 19:00:02 +00:00
Static check: Don't report dead code
This commit is contained in:
parent
3cbe3255aa
commit
64bad8e71b
@ -159,8 +159,9 @@ ifeq ($(MAKECMDGOALS),)
|
|||||||
-include $(shell find $(objdir) -name "*.d")
|
-include $(shell find $(objdir) -name "*.d")
|
||||||
endif
|
endif
|
||||||
|
|
||||||
STATIC_CHECKERS := nullability.NullableDereferenced nullability.NullablePassedToNonnull nullability.NullableReturnedFromNonnull optin.portability.UnixAPI valist.CopyToSelf valist.Uninitialized valist.Unterminated
|
STATIC_CHECKERS_ENABLE := 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_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:
|
static-scan:
|
||||||
$(MAKE) clean
|
$(MAKE) clean
|
||||||
|
Loading…
x
Reference in New Issue
Block a user