summaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-12-02 20:54:58 -0500
committerDavid Robillard <d@drobilla.net>2024-12-02 20:54:58 -0500
commitd91c0889493471b5c50fe2e8e85f15d1499a870a (patch)
tree9079b6e874e2fc9840e61b1aad183343bebe564a /meson.build
parent936d5cd00b5ade6bb5e5f72ecb62a2e41414c590 (diff)
downloadingen-d91c0889493471b5c50fe2e8e85f15d1499a870a.tar.gz
ingen-d91c0889493471b5c50fe2e8e85f15d1499a870a.tar.bz2
ingen-d91c0889493471b5c50fe2e8e85f15d1499a870a.zip
Fix strict release and warning_level=2 GCC buildHEADmain
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build10
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