]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: drop -Wno-typedef-redefinition for clang
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 9 Jun 2025 15:14:17 +0000 (17:14 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 9 Jun 2025 19:04:06 +0000 (20:04 +0100)
It was added in 1a40a3393e904fe4683f6d2b2450cfbd94a34000 for autotools,
sadly with no explanation, and forward-ported to meson in
5c23128daba7236a6080383b2a5649033cfef85c. Things seems to work fine without
it now so drop it.

Tested with clang-20.1.5-1.fc43.x86_64.

meson.build

index 71a94a7fbaa61514442aecf552cb421a4f9e4d68..595522d83d8970b4e7ed6f36f74096d44b622ce3 100644 (file)
@@ -486,12 +486,6 @@ if get_option('b_sanitize') == 'none'
         possible_link_flags += '-Wl,--warn-common'
 endif
 
-if cc.get_id() == 'clang'
-        possible_common_cc_flags += [
-                '-Wno-typedef-redefinition',
-        ]
-endif
-
 if get_option('mode') == 'release'
         # We could enable 'pattern' for developer mode, but that can interfere with
         # valgrind and sanitizer builds. Also, clang does not zero-initialize unions,