DPDK patches and discussions
 help / color / mirror / Atom feed
From: Helin Zhang <helin.zhang@intel.com>
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH v2 2/2] i40e/base: compile fix on clang 3.3
Date: Mon, 18 May 2015 23:03:29 +0800	[thread overview]
Message-ID: <1431961409-22252-3-git-send-email-helin.zhang@intel.com> (raw)
In-Reply-To: <1431961409-22252-1-git-send-email-helin.zhang@intel.com>

Below compile error can be found on clang 3.3, which is a warning
treated as error. Forcedly disabling the warning can fix it.

Error log:
lib/librte_pmd_i40e/i40e/i40e_nvm.c:708:20: error: unused variable
'i40e_nvm_update_state_str' [-Werror,-Wunused-variable]
STATIC const char *i40e_nvm_update_state_str[] = {
                   ^

Signed-off-by: Helin Zhang <helin.zhang@intel.com>
---
 lib/librte_pmd_i40e/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/librte_pmd_i40e/Makefile b/lib/librte_pmd_i40e/Makefile
index 911e4f5..4a5635b 100644
--- a/lib/librte_pmd_i40e/Makefile
+++ b/lib/librte_pmd_i40e/Makefile
@@ -58,6 +58,7 @@ CFLAGS_BASE_DRIVER += -Wno-format
 CFLAGS_BASE_DRIVER += -Wno-missing-field-initializers
 CFLAGS_BASE_DRIVER += -Wno-pointer-to-int-cast
 CFLAGS_BASE_DRIVER += -Wno-format-nonliteral
+CFLAGS_BASE_DRIVER += -Wno-unused-variable
 else
 CFLAGS_BASE_DRIVER  = -Wno-sign-compare
 CFLAGS_BASE_DRIVER += -Wno-unused-value
-- 
1.8.1.4

  parent reply	other threads:[~2015-05-18 15:03 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-18 13:52 [dpdk-dev] [PATCH] i40e: compile fix on ICC 13.0.0 Helin Zhang
2015-05-18 15:03 ` [dpdk-dev] [PATCH v2 0/2] compile fixes on ICC and clang Helin Zhang
2015-05-18 15:03   ` [dpdk-dev] [PATCH v2 1/2] i40e/base: compile fix on ICC 13.0.0 Helin Zhang
2015-05-18 15:11     ` Bruce Richardson
2015-05-18 15:13       ` Bruce Richardson
2015-05-18 15:03   ` Helin Zhang [this message]
2015-05-18 15:11     ` [dpdk-dev] [PATCH v2 2/2] i40e/base: compile fix on clang 3.3 Bruce Richardson
2015-05-18 15:40   ` [dpdk-dev] [PATCH v3 0/2] fix compile with ICC and clang Helin Zhang
2015-05-18 15:40     ` [dpdk-dev] [PATCH v3 1/2] i40e/base: fix compile with ICC 13.0.0 Helin Zhang
2015-05-18 15:40     ` [dpdk-dev] [PATCH v3 2/2] i40e/base: fix compile with clang 3.3 Helin Zhang
2015-05-18 15:43     ` [dpdk-dev] [PATCH v3 0/2] fix compile with ICC and clang Bruce Richardson
2015-05-19 10:32       ` Thomas Monjalon
2015-05-19 14:12         ` Zhang, Helin
2015-05-19  1:25   ` [dpdk-dev] [PATCH v2 0/2] compile fixes on " Tetsuya Mukawa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1431961409-22252-3-git-send-email-helin.zhang@intel.com \
    --to=helin.zhang@intel.com \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).