enic: fix warnings
authorThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 2 Dec 2014 13:38:31 +0000 (14:38 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 4 Dec 2014 12:04:24 +0000 (13:04 +0100)
commitb70ae1899fea35be465dca889cbc1bac981dc8ac
tree72a20992b72e279e389486f92781fded83020126
parent8436acd6ba8c37c560171923dca2407c56438c7a
enic: fix warnings

A lot of warnings were not seen because $(WERROR_FLAGS) was not set
in the Makefile. But they appear with toolchains that enforce more checks.

-Wno-deprecated seems useless.
-Wno-strict-aliasing is added to avoid false positives.

This patch cleans up unused variable, unused functions, wrong types,
static declarations, etc. A lot of functions have unused parameters;
it suggests that more clean-up could be needed.

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Acked-by: Sujith Sankar <ssujith@cisco.com>
lib/librte_pmd_enic/Makefile
lib/librte_pmd_enic/enic.h
lib/librte_pmd_enic/enic_ethdev.c
lib/librte_pmd_enic/enic_main.c
lib/librte_pmd_enic/vnic/vnic_cq.h
lib/librte_pmd_enic/vnic/vnic_dev.c
lib/librte_pmd_enic/vnic/vnic_dev.h
lib/librte_pmd_enic/vnic/vnic_intr.c