From d9af093daf7b84048b50562e6c9f66912a387488 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Mon, 9 Jun 2025 17:14:17 +0200 Subject: [PATCH] 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. --- meson.build | 6 ------ 1 file changed, 6 deletions(-) diff --git a/meson.build b/meson.build index 71a94a7fba..595522d83d 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,