build: use meson warning_level to pass -Wall to compiler

meson has a builtin option to pass some warning flags to compiler. 'warning_level=1' passes -Wall

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D12315
This commit is contained in:
Vincent Torri 2022-01-10 05:37:12 +00:00 committed by Marcel Hollerbach
parent 107b19d427
commit 0a1ae11586
1 changed files with 1 additions and 2 deletions

View File

@ -1,6 +1,6 @@
project('efl', ['c','cpp'], project('efl', ['c','cpp'],
version: '1.26.99', version: '1.26.99',
default_options : ['buildtype=plain', 'cpp_std=c++11'], default_options : ['buildtype=plain', 'warning_level=1', 'cpp_std=c++11'],
meson_version : '>=0.50' meson_version : '>=0.50'
) )
@ -73,7 +73,6 @@ local_scripts = join_paths('src', 'scripts')
dev_cflags = [] dev_cflags = []
dev_cflags_try = [ dev_cflags_try = [
'-fvisibility=hidden', '-fvisibility=hidden',
'-Wall',
'-Wfloat-compare', '-Wfloat-compare',
'-Wpointer-arith', '-Wpointer-arith',
'-Wunused-parameter', '-Wunused-parameter',