From b11b29890de673a39a5961c63edad3e674e99dab Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Tue, 17 Oct 2006 15:53:42 +0100 Subject: Don't use -Wunused-value. It's too aggressive with GCC4. Signed-off-by: Keir Fraser --- Config.mk | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Config.mk') diff --git a/Config.mk b/Config.mk index 74bd8ec80c..92c829dede 100644 --- a/Config.mk +++ b/Config.mk @@ -52,6 +52,10 @@ test-gcc-flag = $(shell $(1) -v --help 2>&1 | grep -q " $(2) " && echo $(2)) CFLAGS += -Wall -Wstrict-prototypes +# -Wunused-value makes GCC 4.x too aggressive for my taste: ignoring the +# result of any casted expression causes a warning. +CFLAGS += -Wno-unused-value + HOSTCFLAGS += $(call test-gcc-flag,$(HOSTCC),-Wdeclaration-after-statement) CFLAGS += $(call test-gcc-flag,$(CC),-Wdeclaration-after-statement) -- cgit v1.2.3