1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 00:09:46 +01:00

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.
This commit is contained in:
Marian Buschsieweke 2023-05-19 22:11:54 +02:00 committed by Marian Buschsieweke
parent 33442fdb71
commit 59f1b4346c
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94

View File

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