From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1RhiOC-0005Te-9A for barebox@lists.infradead.org; Mon, 02 Jan 2012 13:57:24 +0000 From: Sascha Hauer Date: Mon, 2 Jan 2012 14:57:11 +0100 Message-Id: <1325512634-25797-3-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1325512634-25797-1-git-send-email-s.hauer@pengutronix.de> References: <1325512634-25797-1-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 2/5] Makefile: disable unused-but-set-variable warning To: barebox@lists.infradead.org This produces too many false positives. Signed-off-by: Sascha Hauer --- Makefile | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/Makefile b/Makefile index b6e4c0c..d96fc88 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) -- 1.7.7.3 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox