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>
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
sources += files('mlx4_glue.c')
endif
cflags_options = [
- '-Wextra',
'-std=c11',
'-Wno-strict-prototypes',
'-D_BSD_SOURCE',
sources += files('mlx5_glue.c')
endif
cflags_options = [
- '-Wextra',
'-std=c11',
'-Wno-strict-prototypes',
'-D_BSD_SOURCE',
# Enable more warnings
extra_flags += [
- '-Wextra',
'-Wdisabled-optimization'
]
# Compiler and version dependent flags
extra_flags += [
'-Waggregate-return',
- '-Wnested-externs',
'-Wbad-function-cast'
]
allow_experimental_apis = true
cflags_options = [
- '-Wall',
- '-Wextra',
'-D_BSD_SOURCE',
'-D_DEFAULT_SOURCE',
'-D_XOPEN_SOURCE=600'