Add make option for allowing warnings
This commit is contained in:
parent
d8e2ff2964
commit
d68294615f
|
@ -92,7 +92,9 @@ endif
|
||||||
endif
|
endif
|
||||||
CFLAGS += -Wall
|
CFLAGS += -Wall
|
||||||
CFLAGS += -Wstrict-prototypes
|
CFLAGS += -Wstrict-prototypes
|
||||||
|
ifneq ($(strip $(ALLOW_WARNINGS)), yes)
|
||||||
CFLAGS += -Werror
|
CFLAGS += -Werror
|
||||||
|
endif
|
||||||
#CFLAGS += -mshort-calls
|
#CFLAGS += -mshort-calls
|
||||||
#CFLAGS += -fno-unit-at-a-time
|
#CFLAGS += -fno-unit-at-a-time
|
||||||
#CFLAGS += -Wundef
|
#CFLAGS += -Wundef
|
||||||
|
@ -116,7 +118,9 @@ CPPFLAGS += -O$(OPT)
|
||||||
CPPFLAGS += -w
|
CPPFLAGS += -w
|
||||||
CPPFLAGS += -Wall
|
CPPFLAGS += -Wall
|
||||||
CPPFLAGS += -Wundef
|
CPPFLAGS += -Wundef
|
||||||
|
ifneq ($(strip $(ALLOW_WARNINGS)), yes)
|
||||||
CPPFLAGS += -Werror
|
CPPFLAGS += -Werror
|
||||||
|
endif
|
||||||
#CPPFLAGS += -mshort-calls
|
#CPPFLAGS += -mshort-calls
|
||||||
#CPPFLAGS += -fno-unit-at-a-time
|
#CPPFLAGS += -fno-unit-at-a-time
|
||||||
#CPPFLAGS += -Wstrict-prototypes
|
#CPPFLAGS += -Wstrict-prototypes
|
||||||
|
|
Loading…
Reference in New Issue