meson: fix -Wall warning
Meson already handles Wall via the built-in warning_level option. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20201207130055.462734-2-marcandre.lureau@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
5e735860c4
commit
30a56bce4f
1 changed files with 12 additions and 10 deletions
22
meson.build
22
meson.build
|
@ -6,16 +6,18 @@ project('dtc', 'c',
|
||||||
|
|
||||||
cc = meson.get_compiler('c')
|
cc = meson.get_compiler('c')
|
||||||
|
|
||||||
add_project_arguments(cc.get_supported_arguments([
|
add_project_arguments(
|
||||||
'-Wall',
|
cc.get_supported_arguments([
|
||||||
'-Wpointer-arith',
|
'-Wpointer-arith',
|
||||||
'-Wcast-qual',
|
'-Wcast-qual',
|
||||||
'-Wnested-externs',
|
'-Wnested-externs',
|
||||||
'-Wstrict-prototypes',
|
'-Wstrict-prototypes',
|
||||||
'-Wmissing-prototypes',
|
'-Wmissing-prototypes',
|
||||||
'-Wredundant-decls',
|
'-Wredundant-decls',
|
||||||
'-Wshadow'
|
'-Wshadow'
|
||||||
]),language: 'c')
|
]),
|
||||||
|
language: 'c'
|
||||||
|
)
|
||||||
|
|
||||||
if host_machine.system() == 'windows'
|
if host_machine.system() == 'windows'
|
||||||
add_project_arguments(
|
add_project_arguments(
|
||||||
|
|
Loading…
Reference in a new issue