From e6039494f818267d17b898c9bdd6938823bdb1e3 Mon Sep 17 00:00:00 2001 From: Emily Boudreaux Date: Wed, 19 Mar 2025 10:38:00 -0400 Subject: [PATCH] build(meson.build): remove unused variable, function, lambda capture, and member variable warnings during debug builds --- meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index ec0102e..cdf0c15 100644 --- a/meson.build +++ b/meson.build @@ -3,6 +3,10 @@ project('4DSSE', 'cpp', version: '0.0.1a', default_options: ['cpp_std=c++23'], m # Add default visibility for all C++ targets add_project_arguments('-fvisibility=default', language: 'cpp') +if get_option('buildtype') == 'debug' + add_project_arguments('-Wno-unused-variable', '-Wno-unused-parameter', '-Wno-unused-function', '-Wno-unused-private-field', '-Wno-unused-lambda-capture', language : 'cpp') +endif + # Build external dependencies first so that all the embedded resources are available to the other targets subdir('build-config') subdir('subprojects/PicoSHA2') @@ -14,4 +18,4 @@ if get_option('build_tests') endif # Build the utilities -subdir('utils') \ No newline at end of file +subdir('utils')