diff options
author | Floris Kraak <randakar@gmail.com> | 2009-06-15 08:54:02 +0300 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2009-06-27 00:15:27 +0200 |
commit | a8735821d198675dd326cc5847e79df79c735119 (patch) | |
tree | 917e98bb50601de2694e475085d2497a74c469f7 /Makefile | |
parent | 7a6b1f1c0c492a6bb6f778dff0f9f5facb90d1a1 (diff) | |
download | linux-a8735821d198675dd326cc5847e79df79c735119.tar.gz linux-a8735821d198675dd326cc5847e79df79c735119.tar.bz2 linux-a8735821d198675dd326cc5847e79df79c735119.zip |
Kbuild: Disable the -Wformat-security gcc flag
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 <randakar@gmail.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -344,7 +344,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) |