Skip to content

Commit

Permalink
meson: fix -Wall warning
Browse files Browse the repository at this point in the history
Meson already handles Wall via the built-in warning_level option.

Signed-off-by: Marc-André Lureau <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: David Gibson <[email protected]>
  • Loading branch information
elmarco authored and dgibson committed Dec 8, 2020
1 parent 5e73586 commit 30a56bc
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 30a56bc

Please sign in to comment.