All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] kbuild: add -Wno-pointer-sign flag unconditionally
@ 2018-10-01  9:44 Masahiro Yamada
  2018-10-01  9:44 ` [PATCH 2/3] kbuild: add -Wdeclaration-after-statement " Masahiro Yamada
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Masahiro Yamada @ 2018-10-01  9:44 UTC (permalink / raw)
  To: linux-kbuild
  Cc: Arnd Bergmann, Kees Cook, Nick Desaulniers, Masahiro Yamada,
	Michal Marek, linux-kernel

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>
---

 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index c6d1f2f..505a324 100644
--- a/Makefile
+++ b/Makefile
@@ -800,7 +800,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)
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2018-10-09 14:59 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-01  9:44 [PATCH 1/3] kbuild: add -Wno-pointer-sign flag unconditionally Masahiro Yamada
2018-10-01  9:44 ` [PATCH 2/3] kbuild: add -Wdeclaration-after-statement " Masahiro Yamada
2018-10-01 17:21   ` Nick Desaulniers
2018-10-09 14:58   ` Masahiro Yamada
2018-10-01  9:44 ` [PATCH 3/3] kbuild: add -Wno-unused-but-set-variable compiler " Masahiro Yamada
2018-10-01 17:17   ` Nick Desaulniers
2018-10-01 19:01     ` Masahiro Yamada
2018-10-01 19:58       ` Nick Desaulniers
2018-10-01 22:23         ` Masahiro Yamada
2018-10-01 22:36           ` Nick Desaulniers
2018-10-01 17:24 ` [PATCH 1/3] kbuild: add -Wno-pointer-sign " Nick Desaulniers
2018-10-09 14:57 ` Masahiro Yamada

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.