summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2018-10-01 18:44:36 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-10-19 09:47:44 +0900
commitfb073a4b473e5b854312dc819c66ded9d103e824 (patch)
tree6e3283d0bcafb04b45d8f8d67186262b9e23d02e /Makefile
parent153e04b373dd5a4fdb841a727e47c40b1ad10ffc (diff)
downloadlinux-stable-fb073a4b473e5b854312dc819c66ded9d103e824.tar.gz
linux-stable-fb073a4b473e5b854312dc819c66ded9d103e824.tar.bz2
linux-stable-fb073a4b473e5b854312dc819c66ded9d103e824.zip
kbuild: add -Wno-pointer-sign flag unconditionally
We have raised the compiler requirement from time to time. With commit cafa0010cd51 ("Raise the minimum required gcc version to 4.6"), the minimum for GCC is 4.6 now. The -Wno-pointer-sign has been here since the pre-git era. It is documented in the GCC 4.6 manual, and it is recognized by Clang and ICC as well. Let's rip off the cc-disable-warning switch, and see if somebody complains about it. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d2de86c2eba3..9e41e4563a99 100644
--- a/Makefile
+++ b/Makefile
@@ -810,7 +810,7 @@ NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,)
# disable pointer signed / unsigned warnings in gcc 4.0
-KBUILD_CFLAGS += $(call cc-disable-warning, pointer-sign)
+KBUILD_CFLAGS += -Wno-pointer-sign
# disable stringop warnings in gcc 8+
KBUILD_CFLAGS += $(call cc-disable-warning, stringop-truncation)