diff --git a/Makefile.defs b/Makefile.defs index 76409a37d..1ef2aa09d 100644 --- a/Makefile.defs +++ b/Makefile.defs @@ -170,6 +170,8 @@ GCCEXTRACFLAGS += -Wold-style-declaration -Wno-error=old-style-declaration GCCEXTRACFLAGS += -Woverride-init GCCEXTRACFLAGS += -Wshift-negative-value GCCEXTRACFLAGS += -Wunused-but-set-parameter -Wno-error=unused-but-set-parameter +# enable gcc static analysis +GCCEXTRACFLAGS += -fanalyzer ifeq ($(GCCEXTRA),1) DEFCFLAGS += $(GCCEXTRACFLAGS) $(EXTRACFLAGS) endif