From 82701d38ccac39fed6b0a2bd5ec4452266ef5e6c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 1 May 2023 18:51:45 -0400 Subject: Clean up warning suppressions --- meson/suppressions/meson.build | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'meson/suppressions/meson.build') 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 +# Copyright 2020-2023 David Robillard # 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', -- cgit v1.2.1