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:
parent
524a0d5d66
commit
6c4541d5ad
@ -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
|
||||
|
@ -55,7 +55,6 @@ if build
|
||||
sources += files('mlx4_glue.c')
|
||||
endif
|
||||
cflags_options = [
|
||||
'-Wextra',
|
||||
'-std=c11',
|
||||
'-Wno-strict-prototypes',
|
||||
'-D_BSD_SOURCE',
|
||||
|
@ -66,7 +66,6 @@ if build
|
||||
sources += files('mlx5_glue.c')
|
||||
endif
|
||||
cflags_options = [
|
||||
'-Wextra',
|
||||
'-std=c11',
|
||||
'-Wno-strict-prototypes',
|
||||
'-D_BSD_SOURCE',
|
||||
|
@ -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'
|
||||
]
|
||||
|
||||
|
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user