mirror of
https://github.com/systemd/systemd
synced 2025-10-06 00:13:24 +02:00
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) ```
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user