meson: Set default warning level to 2
parent
332be4d471
commit
bc87cbbb7d
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue