eal: fix unused value warning in memcpy macro
authorPawel Wodkowski <pawelx.wodkowski@intel.com>
Mon, 15 Dec 2014 16:55:02 +0000 (16:55 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 16 Dec 2014 23:40:37 +0000 (00:40 +0100)
commit60a3df650d523bd2e4bb4f77f9278f25f7f1a65c
treec28d2fab44b6e78813746d5270aad455321275fd
parent815cfb7925bb6de6755c7fabc5f36f067e984575
eal: fix unused value warning in memcpy macro

GCC 4.5.1 from SUSE throws this error:
lib/librte_pmd_enic/enic_main.c:862:2: error: value computed is not used

This change use statements in expressions C extension provided by gcc to avoid
'value computed is not used' warning/error when size is not known at compile
time.

Reported-by: Michael Qiu <michael.qiu@intel.com>
Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Acked-by: Michael Qiu <michael.qiu@intel.com>
[Thomas: apply same fix to ppc_64]
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_eal/common/include/arch/ppc_64/rte_memcpy.h
lib/librte_eal/common/include/arch/x86/rte_memcpy.h