drivers: remove duplicated compiler flags
authorBruce Richardson <bruce.richardson@intel.com>
Mon, 7 Oct 2019 14:30:13 +0000 (15:30 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 23 Oct 2019 23:04:14 +0000 (01:04 +0200)
Now that -Wextra, and other warning flags are standard in the build, remove
any duplication in driver build specifications.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Luca Boccassi <bluca@debian.org>
drivers/net/fm10k/base/meson.build
drivers/net/mlx4/meson.build
drivers/net/mlx5/meson.build
drivers/net/sfc/meson.build
drivers/net/vdev_netvsc/meson.build

index 9e1022f..40d9b73 100644 (file)
@@ -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
index efee457..873edad 100644 (file)
@@ -55,7 +55,6 @@ if build
                sources += files('mlx4_glue.c')
        endif
        cflags_options = [
-               '-Wextra',
                '-std=c11',
                '-Wno-strict-prototypes',
                '-D_BSD_SOURCE',
index 142240a..0cf5456 100644 (file)
@@ -66,7 +66,6 @@ if build
                sources += files('mlx5_glue.c')
        endif
        cflags_options = [
-               '-Wextra',
                '-std=c11',
                '-Wno-strict-prototypes',
                '-D_BSD_SOURCE',
index 4fb0d0a..8c54f9d 100644 (file)
@@ -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'
 ]
 
index c82c547..bf62edb 100644 (file)
@@ -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'