diff options
-rw-r--r-- | meson.build | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/meson.build b/meson.build index c146766a..f7aa186d 100644 --- a/meson.build +++ b/meson.build @@ -113,6 +113,7 @@ elif cpp.get_id() == 'gcc' '-Wno-sign-conversion', '-Wno-stack-protector', '-Wno-strict-overflow', + '-Wno-suggest-attribute=cold', '-Wno-suggest-attribute=const', '-Wno-suggest-attribute=format', '-Wno-suggest-attribute=noreturn', @@ -129,10 +130,11 @@ elif cpp.get_id() == 'gcc' endif if warning_level in ['everything', '3'] - cpp_suppressions += [ - '-Wno-unused-parameter', - '-Wno-vla', - ] + cpp_suppressions += ['-Wno-vla'] + endif + + if warning_level in ['everything', '3', '2'] + cpp_suppressions += ['-Wno-unused-parameter'] endif endif |