projects/linux·commit b89f25ea

kbuild: use -Werror=implicit-... instead of -Werror-implicit-...

b89f25ea · Luc Van Oostenryck <[email protected]> · 2019-03-04 13:55:20 +01:00

The flag '-Werror-implicit-function-declaration', present in GCC 2.95,
stopped to be documented in GCC 4.3, replaced by the more generic
'-Werror=...' form.

So, use the equivalent '-Werror=implicit-function-declaration' instead.

Signed-off-by: Luc Van Oostenryck <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
Commit
b89f25ea78920680199b79f80d296c89997deb9d
Parents
fa7295ab

Changes

1 files changed · +1 −1

FileStatusAddDelContent
Makefilemodified+1−1View file

Makefile

View file
diff --git a/Makefile b/Makefile
index 8d04447..ade8709 100644
--- a/Makefile
+++ b/Makefile
@@ -430,7 +430,7 @@ LINUXINCLUDE := \
KBUILD_AFLAGS := -D__ASSEMBLY__ -fno-PIE
KBUILD_CFLAGS := -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs \
-fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE \
- -Werror-implicit-function-declaration -Werror=implicit-int \
+ -Werror=implicit-function-declaration -Werror=implicit-int \
-Wno-format-security \
-std=gnu89
KBUILD_CPPFLAGS := -D__KERNEL__