Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755692AbZFOFyU (ORCPT ); Mon, 15 Jun 2009 01:54:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753817AbZFOFyD (ORCPT ); Mon, 15 Jun 2009 01:54:03 -0400 Received: from courier.cs.helsinki.fi ([128.214.9.1]:46354 "EHLO mail.cs.helsinki.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751132AbZFOFyC (ORCPT ); Mon, 15 Jun 2009 01:54:02 -0400 Date: Mon, 15 Jun 2009 08:54:02 +0300 (EEST) From: Pekka J Enberg To: Sam Ravnborg cc: Floris Kraak , Alan Cox , Linux Kernel Mailing List , Trivial Patch Monkey , Andrew Morton , Al Viro Subject: [PATCH] Kbuild: Disable the -Wformat-security gcc flag In-Reply-To: <20090614205002.GE3187@uranus.ravnborg.org> Message-ID: References: <56e1b5710902040628w5ceb36f5kdb1f433087355f80@mail.gmail.com> <84144f020905150323m76cdd775p87abec356e355d37@mail.gmail.com> <56e1b5710905150628w912759an21c82efc3fae7f4a@mail.gmail.com> <20090614205002.GE3187@uranus.ravnborg.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1343 Lines: 36 From: Floris Kraak Some distributions have enabled the gcc flag -Wformat-security by default. This results in a number of warnings about format arguments to functions, sometimes in cases where fixing the warning is not likely to actually fix a bug. Instead of hand patching a dozens of places (possibly more) that produce warnings that get ignored anyway we just turn off the flag in the Makefile. Signed-off-by: Floris Kraak Signed-off-by: Pekka Enberg --- Makefile | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index 03373bb..5ef1f72 100644 --- a/Makefile +++ b/Makefile @@ -351,7 +351,8 @@ KBUILD_CPPFLAGS := -D__KERNEL__ KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ -fno-strict-aliasing -fno-common \ - -Werror-implicit-function-declaration + -Werror-implicit-function-declaration \ + -Wno-format-security KBUILD_AFLAGS := -D__ASSEMBLY__ # Read KERNELRELEASE from include/config/kernel.release (if it exists) -- 1.6.0.4 -- 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/