More warnings for debug builds
This commit is contained in:
parent
404df4289d
commit
c21e086460
10
Makefile
10
Makefile
@ -45,7 +45,15 @@ CFLAGS = $(CDEBUG) $(CDEFS) $(CINCS) -O$(OPT) $(CSTANDARD) $(CEXTRA)
|
||||
|
||||
ifeq ($(BUILD),debug)
|
||||
CFLAGS += -DDEBUG
|
||||
CFLAGS += -Wall -Wextra -Wstrict-prototypes
|
||||
CFLAGS += -Wall -Wextra -Wformat=2 -Wswitch-default \
|
||||
-Wcast-align -Wpointer-arith -Wbad-function-cast \
|
||||
-Wstrict-prototypes -Winline -Wundef -Wnested-externs \
|
||||
-Wcast-qual -Wshadow -Wwrite-strings -Wconversion \
|
||||
-Winit-self -Wstrict-aliasing -Wmissing-declarations \
|
||||
-Wmissing-include-dirs -Wno-unused-parameter -Wuninitialized \
|
||||
-Wold-style-definition -Wmissing-prototypes -Wunreachable-code \
|
||||
-Wno-unused-but-set-variable -Wmaybe-uninitialized
|
||||
#
|
||||
endif
|
||||
|
||||
#Additional libraries.
|
||||
|
Loading…
Reference in New Issue
Block a user