Use Meson's warning_level option

Set this to 3, and then remove extra warning flags that are already included
by enabling this (#107).
This commit is contained in:
Alex Smith 2019-03-10 10:20:29 +00:00
parent 433370e3fa
commit 058efe8cce

View File

@ -1,26 +1,21 @@
project(
'gamemode',
'c',
default_options : ['c_std=c11'],
default_options : ['c_std=c11', 'warning_level=3'],
version: '1.3-dev',
license: 'BSD',
)
am_cflags = [
'-fstack-protector',
'-Wall',
'-pedantic',
'-Wstrict-prototypes',
'-Wundef',
'-fno-common',
'-Werror-implicit-function-declaration',
'-Wformat',
'-Wformat-security',
'-Werror=format-security',
'-Wconversion',
'-Wunused-variable',
'-Wunreachable-code',
'-W',
]
# Add our main flags