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 <bruce.richardson@intel.com>
Acked-by: Luca Boccassi <bluca@debian.org>
This commit is contained in:
Bruce Richardson 2019-10-07 15:30:13 +01:00 committed by Thomas Monjalon
parent 524a0d5d66
commit 6c4541d5ad
5 changed files with 1 additions and 7 deletions

View 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

View File

@ -55,7 +55,6 @@ if build
sources += files('mlx4_glue.c')
endif
cflags_options = [
'-Wextra',
'-std=c11',
'-Wno-strict-prototypes',
'-D_BSD_SOURCE',

View File

@ -66,7 +66,6 @@ if build
sources += files('mlx5_glue.c')
endif
cflags_options = [
'-Wextra',
'-std=c11',
'-Wno-strict-prototypes',
'-D_BSD_SOURCE',

View 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'
]

View 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'