From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7D8DAA046B for ; Thu, 25 Jul 2019 16:39:13 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E8B451C391; Thu, 25 Jul 2019 16:38:47 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id E02FA1C377 for ; Thu, 25 Jul 2019 16:38:40 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Jul 2019 07:38:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,307,1559545200"; d="scan'208";a="253949016" Received: from silpixa00399126.ir.intel.com (HELO silpixa00399126.ger.corp.intel.com) ([10.237.223.2]) by orsmga001.jf.intel.com with ESMTP; 25 Jul 2019 07:38:39 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson Date: Thu, 25 Jul 2019 15:38:31 +0100 Message-Id: <20190725143831.25116-5-bruce.richardson@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190725143831.25116-1-bruce.richardson@intel.com> References: <20190725143831.25116-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 19.11 4/4] drivers: remove duplicated compiler flags X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Now that -Wextra, and other warning flags are standard in the build, remove any duplication in driver build specifications. Signed-off-by: Bruce Richardson --- drivers/net/fm10k/base/meson.build | 2 +- drivers/net/mlx4/meson.build | 1 - drivers/net/mlx5/meson.build | 1 - drivers/net/sfc/meson.build | 2 -- drivers/net/vdev_netvsc/meson.build | 2 -- 5 files changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/net/fm10k/base/meson.build b/drivers/net/fm10k/base/meson.build index 9e1022fef..40d9b730a 100644 --- a/drivers/net/fm10k/base/meson.build +++ b/drivers/net/fm10k/base/meson.build @@ -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 diff --git a/drivers/net/mlx4/meson.build b/drivers/net/mlx4/meson.build index 028cd97fa..2870e5ef7 100644 --- a/drivers/net/mlx4/meson.build +++ b/drivers/net/mlx4/meson.build @@ -55,7 +55,6 @@ if build sources += files('mlx4_glue.c') endif cflags_options = [ - '-Wextra', '-std=c11', '-Wno-strict-prototypes', '-D_BSD_SOURCE', diff --git a/drivers/net/mlx5/meson.build b/drivers/net/mlx5/meson.build index 62b41caf1..ed8527125 100644 --- a/drivers/net/mlx5/meson.build +++ b/drivers/net/mlx5/meson.build @@ -66,7 +66,6 @@ if build sources += files('mlx5_glue.c') endif cflags_options = [ - '-Wextra', '-std=c11', '-Wno-strict-prototypes', '-D_BSD_SOURCE', diff --git a/drivers/net/sfc/meson.build b/drivers/net/sfc/meson.build index 4fb0d0ac1..8c54f9d54 100644 --- a/drivers/net/sfc/meson.build +++ b/drivers/net/sfc/meson.build @@ -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' ] diff --git a/drivers/net/vdev_netvsc/meson.build b/drivers/net/vdev_netvsc/meson.build index c82c5476c..bf62edb7a 100644 --- a/drivers/net/vdev_netvsc/meson.build +++ b/drivers/net/vdev_netvsc/meson.build @@ -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' -- 2.21.0