since we removed the deprecated matches() now and thus not alot of warnings are currently seen, let's strive to fixup these:
- warn a little bit about unused results
This commit is contained in:
parent
789b87edf5
commit
b7e61485d6
@ -28,6 +28,9 @@ CFLAGS += $(call cc-option,-Wundef -Wstrict-prototypes,)
|
|||||||
|
|
||||||
ifeq ($(CONFIG_WERROR),y)
|
ifeq ($(CONFIG_WERROR),y)
|
||||||
CFLAGS += $(call cc-option,-Werror,)
|
CFLAGS += $(call cc-option,-Werror,)
|
||||||
|
else
|
||||||
|
# for development, warn a little bit about unused results..
|
||||||
|
CPPFLAGS += -D_FORTIFY_SOURCE=2
|
||||||
endif
|
endif
|
||||||
# gcc 3.x emits bogus "old style proto" warning on find.c:alloc_action()
|
# gcc 3.x emits bogus "old style proto" warning on find.c:alloc_action()
|
||||||
CFLAGS += $(call cc-ifversion, -ge, 0400, -Wold-style-definition)
|
CFLAGS += $(call cc-ifversion, -ge, 0400, -Wold-style-definition)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user