lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <162074536334.289757.5292387320537578325.stgit@devnote2>
Date:   Wed, 12 May 2021 00:02:43 +0900
From:   Masami Hiramatsu <mhiramat@...nel.org>
To:     Arnaldo Carvalho de Melo <acme@...nel.org>
Cc:     Anders Roxell <anders.roxell@...aro.org>,
        Leo Yan <leo.yan@...aro.org>, linux-kernel@...r.kernel.org,
        Nathan Chancellor <nathan@...nel.org>,
        Nick Desaulniers <ndesaulniers@...gle.com>
Subject: [PATCH 2/2] tools: Add -Wno-missing-field-initializers to for clang

Since clang's -Wmissing-field-initializers warns valid syntax of
initializing data structure (e.g. initializing static data
structure with single NULL, the rest of fields are initialized
with zero), it is better to disable this warning option
for clang for now.
This can stop building perf because -Werror is also specified.

Note that same issue on gcc has been fixed in 4.7.0, so we don't need
this for gcc.

 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36750

Signed-off-by: Masami Hiramatsu <mhiramat@...nel.org>
---
 tools/scripts/Makefile.include |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tools/scripts/Makefile.include b/tools/scripts/Makefile.include
index f9271f3ea912..4fd5d33ded03 100644
--- a/tools/scripts/Makefile.include
+++ b/tools/scripts/Makefile.include
@@ -89,6 +89,10 @@ ifeq ($(CC_NO_CLANG), 1)
 EXTRA_WARNINGS += -Wstrict-aliasing=3
 endif
 
+ifneq ($(CC_NO_CLANG), 1)
+EXTRA_WARNINGS += -Wno-missing-field-initializers
+endif
+
 # Hack to avoid type-punned warnings on old systems such as RHEL5:
 # We should be changing CFLAGS and checking gcc version, but this
 # will do for now and keep the above -Wstrict-aliasing=3 in place

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ