meson: use warning_level=2 instead of manual -Wall -Wextra

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2017-05-02 10:10:20 +10:00
committed by bentiss
parent fa12517fb2
commit 44471d3c42

View File

@@ -2,7 +2,7 @@ project('ratbagd', 'c',
version : '0.2',
license : 'MIT/Expat',
meson_version : '>= 0.40.0',
default_options : [ 'c_std=gnu99' ])
default_options : [ 'c_std=gnu99', 'warning_level=2' ])
ratbagd_version = meson.project_version().split('.')
@@ -10,8 +10,6 @@ ratbagd_version = meson.project_version().split('.')
cc = meson.get_compiler('c')
cflags = [
'-pipe',
'-Wall',
'-Wextra',
'-Wno-inline',
'-Wundef',
'-Wformat=2',