More warnings for debug builds

This commit is contained in:
Rihards Skuja 2018-01-02 19:14:30 +02:00
parent 404df4289d
commit c21e086460
No known key found for this signature in database
GPG Key ID: 53FA13A3F7F8571B

View File

@ -45,7 +45,15 @@ CFLAGS = $(CDEBUG) $(CDEFS) $(CINCS) -O$(OPT) $(CSTANDARD) $(CEXTRA)
ifeq ($(BUILD),debug) ifeq ($(BUILD),debug)
CFLAGS += -DDEBUG 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 endif
#Additional libraries. #Additional libraries.