From 2ef61fa2c0f8f6f3668fa480d999a2a6b308961b Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 23 Dec 2011 18:07:59 +0100 Subject: Makefile: disable unused-but-set-variable warning This produces too many false positives. Signed-off-by: Sascha Hauer --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b6e4c0c1d1..d96fc88433 100644 --- a/Makefile +++ b/Makefile @@ -450,6 +450,10 @@ endif # Force gcc to behave correct even for buggy distributions CFLAGS += $(call cc-option, -fno-stack-protector) +# This warning generated too much noise in a regular build. +# Use make W=1 to enable this warning (see scripts/Makefile.build) +CFLAGS += $(call cc-disable-warning, unused-but-set-variable) + # arch Makefile may override CC so keep this after arch Makefile is included NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include) CHECKFLAGS += $(NOSTDINC_FLAGS) -- cgit v1.2.3 From 316371d050143550a415679454013adfb3adca04 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 23 Dec 2011 18:13:07 +0100 Subject: Makefile: disable warning: generating trampoline in object Our stack is executable, so disable this warning Signed-off-by: Sascha Hauer --- Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d96fc88433..c64a3cbce6 100644 --- a/Makefile +++ b/Makefile @@ -454,6 +454,8 @@ CFLAGS += $(call cc-option, -fno-stack-protector) # Use make W=1 to enable this warning (see scripts/Makefile.build) CFLAGS += $(call cc-disable-warning, unused-but-set-variable) +CFLAGS += $(call cc-disable-warning, trampolines) + # arch Makefile may override CC so keep this after arch Makefile is included NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include) CHECKFLAGS += $(NOSTDINC_FLAGS) -- cgit v1.2.3