From: Bruce Richardson <bruce.richardson@intel.com>
To: Helin Zhang <helin.zhang@intel.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH v2 2/2] i40e/base: compile fix on clang 3.3
Date: Mon, 18 May 2015 16:11:38 +0100 [thread overview]
Message-ID: <20150518151137.GB12164@bricha3-MOBL3> (raw)
In-Reply-To: <1431961409-22252-3-git-send-email-helin.zhang@intel.com>
On Mon, May 18, 2015 at 11:03:29PM +0800, Helin Zhang wrote:
> 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>
Acked-by: Bruce Richardson <bruce.richardson@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
>
next prev parent reply other threads:[~2015-05-18 15:11 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 ` [dpdk-dev] [PATCH v2 2/2] i40e/base: compile fix on clang 3.3 Helin Zhang
2015-05-18 15:11 ` Bruce Richardson [this message]
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=20150518151137.GB12164@bricha3-MOBL3 \
--to=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
--cc=helin.zhang@intel.com \
/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).