From: Bruce Richardson Date: Mon, 7 Oct 2019 14:30:13 +0000 (+0100) Subject: drivers: remove duplicated compiler flags X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=6c4541d5ade9f572a16c49cb414f85fdc68700d4;p=dpdk.git drivers: remove duplicated compiler flags Now that -Wextra, and other warning flags are standard in the build, remove any duplication in driver build specifications. Signed-off-by: Bruce Richardson Acked-by: Luca Boccassi --- diff --git a/drivers/net/fm10k/base/meson.build b/drivers/net/fm10k/base/meson.build index 9e1022fefe..40d9b730a3 100644 --- a/drivers/net/fm10k/base/meson.build +++ b/drivers/net/fm10k/base/meson.build @@ -12,7 +12,7 @@ sources = [ error_cflags = ['-Wno-unused-parameter', '-Wno-unused-value', '-Wno-strict-aliasing', '-Wno-format-extra-args', - '-Wno-unused-variable', '-Wno-missing-field-initializers', + '-Wno-unused-variable', '-Wno-implicit-fallthrough' ] c_args = cflags diff --git a/drivers/net/mlx4/meson.build b/drivers/net/mlx4/meson.build index efee45776e..873edadacc 100644 --- a/drivers/net/mlx4/meson.build +++ b/drivers/net/mlx4/meson.build @@ -55,7 +55,6 @@ if build sources += files('mlx4_glue.c') endif cflags_options = [ - '-Wextra', '-std=c11', '-Wno-strict-prototypes', '-D_BSD_SOURCE', diff --git a/drivers/net/mlx5/meson.build b/drivers/net/mlx5/meson.build index 142240ae59..0cf545675d 100644 --- a/drivers/net/mlx5/meson.build +++ b/drivers/net/mlx5/meson.build @@ -66,7 +66,6 @@ if build sources += files('mlx5_glue.c') endif cflags_options = [ - '-Wextra', '-std=c11', '-Wno-strict-prototypes', '-D_BSD_SOURCE', diff --git a/drivers/net/sfc/meson.build b/drivers/net/sfc/meson.build index 4fb0d0ac11..8c54f9d548 100644 --- a/drivers/net/sfc/meson.build +++ b/drivers/net/sfc/meson.build @@ -20,14 +20,12 @@ extra_flags += '-Wno-strict-aliasing' # Enable more warnings extra_flags += [ - '-Wextra', '-Wdisabled-optimization' ] # Compiler and version dependent flags extra_flags += [ '-Waggregate-return', - '-Wnested-externs', '-Wbad-function-cast' ] diff --git a/drivers/net/vdev_netvsc/meson.build b/drivers/net/vdev_netvsc/meson.build index c82c5476c0..bf62edb7a3 100644 --- a/drivers/net/vdev_netvsc/meson.build +++ b/drivers/net/vdev_netvsc/meson.build @@ -10,8 +10,6 @@ sources = files('vdev_netvsc.c') allow_experimental_apis = true cflags_options = [ - '-Wall', - '-Wextra', '-D_BSD_SOURCE', '-D_DEFAULT_SOURCE', '-D_XOPEN_SOURCE=600'