diff options
author | David Robillard <d@drobilla.net> | 2023-05-01 18:51:45 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-05-01 18:51:45 -0400 |
commit | 82701d38ccac39fed6b0a2bd5ec4452266ef5e6c (patch) | |
tree | 0a2404dbff537407fef6cc6c81175dfbb314403c /meson/suppressions | |
parent | e3018801e077d408fd6f3e0742340eeb1f7a2bfc (diff) | |
download | lv2-82701d38ccac39fed6b0a2bd5ec4452266ef5e6c.tar.xz |
Clean up warning suppressions
Diffstat (limited to 'meson/suppressions')
-rw-r--r-- | meson/suppressions/meson.build | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/meson/suppressions/meson.build b/meson/suppressions/meson.build index b58eb19..57fff34 100644 --- a/meson/suppressions/meson.build +++ b/meson/suppressions/meson.build @@ -1,11 +1,9 @@ -# Copyright 2020-2022 David Robillard <d@drobilla.net> +# Copyright 2020-2023 David Robillard <d@drobilla.net> # SPDX-License-Identifier: 0BSD OR ISC -# Project-specific warning suppressions. -# -# This should be used in conjunction with the generic "warnings" sibling that -# enables all reasonable warnings for the compiler. It lives here just to keep -# the top-level meson.build more readable. +# Project-specific warning suppressions + +warning_level = get_option('warning_level') ##### # C # @@ -14,7 +12,7 @@ if is_variable('cc') c_suppressions = [] - if get_option('warning_level') == 'everything' + if warning_level == 'everything' if cc.get_id() in ['clang', 'emscripten'] c_suppressions += [ '-Wno-bad-function-cast', @@ -103,7 +101,7 @@ endif if is_variable('cpp') cpp_suppressions = [] - if get_option('warning_level') == 'everything' + if warning_level == 'everything' if cpp.get_id() in ['clang', 'emscripten'] cpp_suppressions += [ '-Wno-cast-align', |