From 3e018371d044dfcfeeb6f1b3e5b5f46253e5668f Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 28 May 2025 05:43:48 +0900 Subject: [PATCH] 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) ``` --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.47.3