Use GCC's static analyzer if compiling with >= version 10.
Related:
@@ -100,6 +100,10 @@ ifdef GCC_VERSION
ifeq ($(shell test $(GCC_VERSION) -gt 7; echo $$?), 0)
CFLAGS += -Wimplicit-fallthrough
endif
+
+ ifeq ($(shell test $(GCC_VERSION) -ge 10; echo $$?), 0)
+ CFLAGS += -fanalyzer
+ endif
endif
DEBUG_CFLAGS = -g3 -ggdb -fno-omit-frame-pointer -fno-optimize-sibling-calls
