aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFloris Kraak2009-06-15 00:54:02 -0500
committerSam Ravnborg2009-06-26 17:15:27 -0500
commita8735821d198675dd326cc5847e79df79c735119 (patch)
tree917e98bb50601de2694e475085d2497a74c469f7 /Makefile
parent7a6b1f1c0c492a6bb6f778dff0f9f5facb90d1a1 (diff)
downloadkernel-omap-a8735821d198675dd326cc5847e79df79c735119.tar.gz
kernel-omap-a8735821d198675dd326cc5847e79df79c735119.tar.xz
kernel-omap-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--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d1216fea0c92..8fb9bfce212c 100644
--- a/Makefile
+++ b/Makefile
@@ -344,7 +344,8 @@ KBUILD_CPPFLAGS := -D__KERNEL__
344 344
345KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ 345KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
346 -fno-strict-aliasing -fno-common \ 346 -fno-strict-aliasing -fno-common \
347 -Werror-implicit-function-declaration 347 -Werror-implicit-function-declaration \
348 -Wno-format-security
348KBUILD_AFLAGS := -D__ASSEMBLY__ 349KBUILD_AFLAGS := -D__ASSEMBLY__
349 350
350# Read KERNELRELEASE from include/config/kernel.release (if it exists) 351# Read KERNELRELEASE from include/config/kernel.release (if it exists)