raw/ifpga: remove unneeded compiler flags
authorBruce Richardson <bruce.richardson@intel.com>
Mon, 7 Oct 2019 14:30:11 +0000 (15:30 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 23 Oct 2019 23:03:16 +0000 (01:03 +0200)
The warning disable flags for the base driver code were copy-pasted from
another source, and are actually unnecessary for this driver. Therefore
remove them.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Luca Boccassi <bluca@debian.org>
drivers/raw/ifpga/base/meson.build

index f1015bb..69f6598 100644 (file)
@@ -23,17 +23,6 @@ sources = [
        'opae_eth_group.c',
 ]
 
-error_cflags = ['-Wno-sign-compare', '-Wno-unused-value',
-               '-Wno-format', '-Wno-error=format-security',
-               '-Wno-strict-aliasing', '-Wno-unused-but-set-variable'
-]
-c_args = cflags
-foreach flag: error_cflags
-       if cc.has_argument(flag)
-               c_args += flag
-       endif
-endforeach
-
 base_lib = static_library('ifpga_rawdev_base', sources,
        dependencies: static_rte_eal,
        c_args: c_args)