From 59f1b4346cec8cb1cda68fe371dd6e1586a857ef Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Fri, 19 May 2023 22:11:54 +0200 Subject: [PATCH] makefiles/toolchain/llvm.inc.mk: disable annoying C++ warning Designated initializers make the code much more readable and are part of the C standard since C99. C++ with C++20 finally caught up. Until we switch to that C++ version, let's disable the annoying warning rather than reducing the code quality for the sake of strict C++ compatibility of our headers. --- makefiles/toolchain/llvm.inc.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/makefiles/toolchain/llvm.inc.mk b/makefiles/toolchain/llvm.inc.mk index c197d00eef..e81e3abb57 100644 --- a/makefiles/toolchain/llvm.inc.mk +++ b/makefiles/toolchain/llvm.inc.mk @@ -87,6 +87,13 @@ CFLAGS += -Wno-atomic-alignment # unsupported warning flags: CFLAGS += -Wno-unknown-warning-option +# Designated initializers make the code much more readable and are part +# of the C standard since C99. C++ with C++20 finally caught up. +# Until we switch to that C++ version, let's disable the annoying +# warning rather than reducing the code quality for the sake of +# strict C++ compatibility of our headers. +CXXEXFLAGS += -Wno-c99-designator + OPTIONAL_CFLAGS_BLACKLIST += -fno-delete-null-pointer-checks OPTIONAL_CFLAGS_BLACKLIST += -Wformat-overflow OPTIONAL_CFLAGS_BLACKLIST += -Wformat-truncation