Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756077AbYL2NyS (ORCPT ); Mon, 29 Dec 2008 08:54:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753990AbYL2Nv5 (ORCPT ); Mon, 29 Dec 2008 08:51:57 -0500 Received: from pfepa.post.tele.dk ([195.41.46.235]:36143 "EHLO pfepa.post.tele.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753628AbYL2Nvv (ORCPT ); Mon, 29 Dec 2008 08:51:51 -0500 From: Sam Ravnborg To: linux-kbuild , LKML Cc: Hannes Eder , Sam Ravnborg Subject: [PATCH 11/13] kbuild: disable sparse warning "returning void-valued expression" Date: Mon, 29 Dec 2008 14:53:21 +0100 Message-Id: <1230558803-7168-11-git-send-email-sam@ravnborg.org> X-Mailer: git-send-email 1.6.0.2.GIT In-Reply-To: <20081229134402.GA7069@uranus.ravnborg.org> References: <20081229134402.GA7069@uranus.ravnborg.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1101 Lines: 34 From: Hannes Eder The sparse warning -Wreturn-void ("returning void-valued expression") is off by default, but it is enabled with -Wall, so add -Wno-return-void to CHECKFLAGS to disable it. Signed-off-by: Hannes Eder Signed-off-by: Sam Ravnborg --- Makefile | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index 09ff7d8..f40e07a 100644 --- a/Makefile +++ b/Makefile @@ -320,7 +320,8 @@ KALLSYMS = scripts/kallsyms PERL = perl CHECK = sparse -CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ -Wbitwise $(CF) +CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \ + -Wbitwise -Wno-return-void $(CF) MODFLAGS = -DMODULE CFLAGS_MODULE = $(MODFLAGS) AFLAGS_MODULE = $(MODFLAGS) -- 1.6.0.2.GIT -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/