diff --git a/config/meson.build b/config/meson.build index ee12318d4f..7134e80e8d 100644 --- a/config/meson.build +++ b/config/meson.build @@ -247,10 +247,9 @@ endif add_project_arguments('-include', 'rte_config.h', language: 'c') # enable extra warnings and disable any unwanted warnings +# -Wall is added by default at warning level 1, and -Wextra +# at warning level 2 (DPDK default) warning_flags = [ - # -Wall is added by meson by default, so add -Wextra only - '-Wextra', - # additional warnings in alphabetical order '-Wcast-qual', '-Wdeprecated', diff --git a/meson.build b/meson.build index 1223b79d74..3d97e96f38 100644 --- a/meson.build +++ b/meson.build @@ -7,7 +7,11 @@ project('DPDK', 'C', version: run_command(find_program('cat', 'more'), files('VERSION'), check: true).stdout().strip(), license: 'BSD', - default_options: ['buildtype=release', 'default_library=static'], + default_options: [ + 'buildtype=release', + 'default_library=static', + 'warning_level=2', + ], meson_version: '>= 0.49.2' )