From: Yu Watanabe Date: Tue, 27 May 2025 20:43:48 +0000 (+0900) Subject: meson: also disable -Wmaybe-uninitialized when -Ofast is specified X-Git-Tag: v258-rc1~456^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F37638%2Fhead;p=thirdparty%2Fsystemd.git meson: also disable -Wmaybe-uninitialized when -Ofast is specified At least with GCC-14, -Ofast produces many false-positive warnings. ``` $ gcc --version gcc (GCC) 14.2.1 20250110 (Red Hat 14.2.1-7) ``` --- diff --git a/meson.build b/meson.build index 210e4814f3c..63eac45bbba 100644 --- a/meson.build +++ b/meson.build @@ -463,7 +463,8 @@ if cc.get_id() == 'gcc' and (not '02'.contains(get_option('optimization')) or '-Os' in c_args or '-O1' in c_args or '-O3' in c_args or - '-Og' in c_args) + '-Og' in c_args or + '-Ofast' in c_args) possible_common_cc_flags += '-Wno-maybe-uninitialized' endif