Skip to content

Commit

Permalink
Kbuild: Disable the -Wformat-security gcc flag
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Pekka Enberg <[email protected]>
Signed-off-by: Sam Ravnborg <[email protected]>
  • Loading branch information
randakar authored and sravnborg committed Jun 26, 2009
1 parent 7a6b1f1 commit a873582
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a873582

Please sign in to comment.