From bc87cbbb7d394e60c3ca6b288d1719bb8d5bcc25 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Sat, 26 Nov 2022 18:19:08 +0000 Subject: [PATCH] meson: Set default warning level to 2 --- meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 797dbc1..8b3f115 100644 --- a/meson.build +++ b/meson.build @@ -5,6 +5,7 @@ project( license: 'ISC', default_options: [ 'c_std=gnu11', + 'warning_level=2', ], ) @@ -15,8 +16,10 @@ c_args = [ '-DPROJECT_VERSION="@0@"'.format(meson.project_version()), '-D_GNU_SOURCE', '-fvisibility=hidden', - '-Wmissing-prototypes', '-DAML_UNSTABLE_API=1', + + '-Wmissing-prototypes', + '-Wno-unused-parameter', ] if buildtype != 'debug' and buildtype != 'debugoptimized'