mirror of https://github.com/djcb/mu.git
build: bump warning level to 2
This commit is contained in:
parent
c0da564bba
commit
286badf802
14
meson.build
14
meson.build
|
@ -23,7 +23,7 @@ project('mu', ['c', 'cpp'],
|
||||||
license: 'GPL-3.0-or-later',
|
license: 'GPL-3.0-or-later',
|
||||||
default_options : [
|
default_options : [
|
||||||
'buildtype=debugoptimized',
|
'buildtype=debugoptimized',
|
||||||
'warning_level=1',
|
'warning_level=2',
|
||||||
'c_std=c11',
|
'c_std=c11',
|
||||||
'cpp_std=c++17'
|
'cpp_std=c++17'
|
||||||
]
|
]
|
||||||
|
@ -40,15 +40,9 @@ infodir = join_paths(prefixdir, get_option('infodir'))
|
||||||
# compilers / flags
|
# compilers / flags
|
||||||
#
|
#
|
||||||
extra_flags = [
|
extra_flags = [
|
||||||
'-Wundef',
|
'-Wno-unused-parameter',
|
||||||
'-Wwrite-strings',
|
'-Wno-cast-function-type',
|
||||||
'-Wformat',
|
'-Wno-#warnings'
|
||||||
'-Wformat-nonliteral',
|
|
||||||
'-Wformat-security',
|
|
||||||
'-Winit-self',
|
|
||||||
'-Wmissing-include-dirs',
|
|
||||||
'-Wpointer-arith',
|
|
||||||
'-Wswitch-default',
|
|
||||||
]
|
]
|
||||||
|
|
||||||
# compilers
|
# compilers
|
||||||
|
|
Loading…
Reference in New Issue