Skip to content

Commit 8d6114a

Browse files
Matthias Kaehlckepundiramit
authored andcommitted
CHROMIUM: kbuild: clang: Disable the 'duplicate-decl-specifier' warning
clang generates plenty of these warnings in different parts of the code. They are mostly caused by container_of() and other macros which declare a "const <type> *" variable for their internal use which triggers a "duplicate 'const' specifier" warning if the <type> is already const qualified. Change-Id: I85ffb201003d3a04fe8b8ff94478344250d2db68 Wording-mostly-from: Michael Davidson <md@google.com> Signed-off-by: Matthias Kaehlcke <mka@chromium.org> Signed-off-by: Greg Hackmann <ghackmann@google.com>
1 parent 607f865 commit 8d6114a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,7 @@ KBUILD_CFLAGS += $(call cc-disable-warning, unused-variable)
708708
KBUILD_CFLAGS += $(call cc-disable-warning, format-invalid-specifier)
709709
KBUILD_CFLAGS += $(call cc-disable-warning, gnu)
710710
KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member)
711+
KBUILD_CFLAGS += $(call cc-disable-warning, duplicate-decl-specifier)
711712
# Quiet clang warning: comparison of unsigned expression < 0 is always false
712713
KBUILD_CFLAGS += $(call cc-disable-warning, tautological-compare)
713714
# CLANG uses a _MergedGlobals as optimization, but this breaks modpost, as the

0 commit comments

Comments
 (0)