misc: add better support for GCC's static analyzer
This commit is contained in:
parent
d84cd5f482
commit
aa98d9f559
1
Makefile
1
Makefile
|
@ -94,6 +94,7 @@ endif
|
||||||
# Debugging
|
# Debugging
|
||||||
#CFLAGS += -fsanitize=address -fPIC
|
#CFLAGS += -fsanitize=address -fPIC
|
||||||
#LDFLAGS += -lasan
|
#LDFLAGS += -lasan
|
||||||
|
#CFLAGS += -fanalyzer -flto
|
||||||
|
|
||||||
# Flags
|
# Flags
|
||||||
CFLAGS += -Wall -Wextra -Wformat-security -funit-at-a-time -g -Og -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -std=c99 -D_POSIX_C_SOURCE=200809L # -Wconversion
|
CFLAGS += -Wall -Wextra -Wformat-security -funit-at-a-time -g -Og -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -std=c99 -D_POSIX_C_SOURCE=200809L # -Wconversion
|
||||||
|
|
Loading…
Reference in New Issue