Browse Source

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>
main
Marc-André Lureau 4 years ago committed by David Gibson
parent
commit
30a56bce4f
  1. 22
      meson.build

22
meson.build

@ -6,16 +6,18 @@ project('dtc', 'c', @@ -6,16 +6,18 @@ project('dtc', 'c',

cc = meson.get_compiler('c')

add_project_arguments(cc.get_supported_arguments([
'-Wall',
'-Wpointer-arith',
'-Wcast-qual',
'-Wnested-externs',
'-Wstrict-prototypes',
'-Wmissing-prototypes',
'-Wredundant-decls',
'-Wshadow'
]),language: 'c')
add_project_arguments(
cc.get_supported_arguments([
'-Wpointer-arith',
'-Wcast-qual',
'-Wnested-externs',
'-Wstrict-prototypes',
'-Wmissing-prototypes',
'-Wredundant-decls',
'-Wshadow'
]),
language: 'c'
)

if host_machine.system() == 'windows'
add_project_arguments(

Loading…
Cancel
Save