From: Zbigniew Jędrzejewski-Szmek Date: Mon, 9 Jun 2025 15:14:17 +0000 (+0200) Subject: meson: drop -Wno-typedef-redefinition for clang X-Git-Tag: v258-rc1~349 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9af093daf7b84048b50562e6c9f66912a387488;p=thirdparty%2Fsystemd.git meson: drop -Wno-typedef-redefinition for clang 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. --- diff --git a/meson.build b/meson.build index 71a94a7fbaa..595522d83d8 100644 --- a/meson.build +++ b/meson.build @@ -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,