Skip to content

Commit c93e4ae

Browse files
arndbmasahir0y
authored andcommitted
Makefile.extrawarn: remove -Wnested-externs warning
The -Wnested-externs warning has become useless with gcc, since this warns every time that BUILD_BUG_ON() or similar macros are used. With clang, the warning option does nothing to start with, so just remove it entirely. Suggested-by: Nathan Chancellor <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Reviewed-by: Nathan Chancellor <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent c25ce58 commit c93e4ae

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

scripts/Makefile.extrawarn

-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ endif
6161
ifneq ($(findstring 2, $(KBUILD_EXTRA_WARN)),)
6262

6363
KBUILD_CFLAGS += -Wdisabled-optimization
64-
KBUILD_CFLAGS += -Wnested-externs
6564
KBUILD_CFLAGS += -Wshadow
6665
KBUILD_CFLAGS += $(call cc-option, -Wlogical-op)
6766
KBUILD_CFLAGS += -Wmissing-field-initializers

0 commit comments

Comments
 (0)