mirror of
https://github.com/torvalds/linux.git
synced 2024-12-30 14:52:05 +00:00
kbuild: add -Werror=implicit-int flag unconditionally
This flag is documented in the GCC 4.6 manual, and recognized by Clang as well. Let's rip off the cc-option switch. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
This commit is contained in:
parent
eeb5687a71
commit
61a0902a06
5
Makefile
5
Makefile
@ -429,7 +429,7 @@ LINUXINCLUDE := \
|
|||||||
KBUILD_AFLAGS := -D__ASSEMBLY__ -fno-PIE
|
KBUILD_AFLAGS := -D__ASSEMBLY__ -fno-PIE
|
||||||
KBUILD_CFLAGS := -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs \
|
KBUILD_CFLAGS := -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs \
|
||||||
-fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE \
|
-fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE \
|
||||||
-Werror-implicit-function-declaration \
|
-Werror-implicit-function-declaration -Werror=implicit-int \
|
||||||
-Wno-format-security \
|
-Wno-format-security \
|
||||||
-std=gnu89
|
-std=gnu89
|
||||||
KBUILD_CPPFLAGS := -D__KERNEL__
|
KBUILD_CPPFLAGS := -D__KERNEL__
|
||||||
@ -829,9 +829,6 @@ KBUILD_CFLAGS += $(call cc-option,-fno-stack-check,)
|
|||||||
# conserve stack if available
|
# conserve stack if available
|
||||||
KBUILD_CFLAGS += $(call cc-option,-fconserve-stack)
|
KBUILD_CFLAGS += $(call cc-option,-fconserve-stack)
|
||||||
|
|
||||||
# disallow errors like 'EXPORT_GPL(foo);' with missing header
|
|
||||||
KBUILD_CFLAGS += $(call cc-option,-Werror=implicit-int)
|
|
||||||
|
|
||||||
# Prohibit date/time macros, which would make the build non-deterministic
|
# Prohibit date/time macros, which would make the build non-deterministic
|
||||||
KBUILD_CFLAGS += $(call cc-option,-Werror=date-time)
|
KBUILD_CFLAGS += $(call cc-option,-Werror=date-time)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user