diff mbox

[dpdk-dev] enic: fix build on SUSE 11

Message ID 1418641649-4277-1-git-send-email-thomas.monjalon@6wind.com (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Thomas Monjalon Dec. 15, 2014, 11:07 a.m. UTC
GCC 4.5.1 from SUSE throws this error:
	lib/librte_pmd_enic/enic_main.c:862:2: error: value computed is not used

It seems to be a GCC bug.

Reported-by: Michael Qiu <michael.qiu@intel.com>
Suggested-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
---
 lib/librte_pmd_enic/enic_main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/lib/librte_pmd_enic/enic_main.c b/lib/librte_pmd_enic/enic_main.c
index e4f43c5..8cfb6e3 100644
--- a/lib/librte_pmd_enic/enic_main.c
+++ b/lib/librte_pmd_enic/enic_main.c
@@ -858,7 +858,8 @@  static int enic_set_rsskey(struct enic *enic)
 	if (!rss_key_buf_va)
 		return -ENOMEM;
 
-	rte_memcpy(rss_key_buf_va, &rss_key, sizeof(union vnic_rss_key));
+	/* ignore return to workaround a bug seen with GCC 4.5.1 on SUSE 11 SP3 */
+	(void) rte_memcpy(rss_key_buf_va, &rss_key, sizeof(union vnic_rss_key));
 
 	err = enic_set_rss_key(enic,
 		rss_key_buf_pa,