meson: Set default warning level to 2

pull/84/head
Andri Yngvason 2022-11-26 18:19:08 +00:00
parent 332be4d471
commit bc87cbbb7d
1 changed files with 4 additions and 1 deletions

View File

@ -5,6 +5,7 @@ project(
license: 'ISC', license: 'ISC',
default_options: [ default_options: [
'c_std=gnu11', 'c_std=gnu11',
'warning_level=2',
], ],
) )
@ -15,8 +16,10 @@ c_args = [
'-DPROJECT_VERSION="@0@"'.format(meson.project_version()), '-DPROJECT_VERSION="@0@"'.format(meson.project_version()),
'-D_GNU_SOURCE', '-D_GNU_SOURCE',
'-fvisibility=hidden', '-fvisibility=hidden',
'-Wmissing-prototypes',
'-DAML_UNSTABLE_API=1', '-DAML_UNSTABLE_API=1',
'-Wmissing-prototypes',
'-Wno-unused-parameter',
] ]
if buildtype != 'debug' and buildtype != 'debugoptimized' if buildtype != 'debug' and buildtype != 'debugoptimized'