summaryrefslogtreecommitdiff
path: root/lib/librte_pmd_enic/Makefile
diff options
context:
space:
mode:
authorThomas Monjalon <thomas.monjalon@6wind.com>2014-12-02 14:38:31 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-12-04 13:04:24 +0100
commitb70ae1899fea35be465dca889cbc1bac981dc8ac (patch)
tree72a20992b72e279e389486f92781fded83020126 /lib/librte_pmd_enic/Makefile
parent8436acd6ba8c37c560171923dca2407c56438c7a (diff)
downloaddpdk-b70ae1899fea35be465dca889cbc1bac981dc8ac.zip
dpdk-b70ae1899fea35be465dca889cbc1bac981dc8ac.tar.gz
dpdk-b70ae1899fea35be465dca889cbc1bac981dc8ac.tar.xz
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>
Diffstat (limited to 'lib/librte_pmd_enic/Makefile')
-rw-r--r--lib/librte_pmd_enic/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/librte_pmd_enic/Makefile b/lib/librte_pmd_enic/Makefile
index 948ec96..a2a623f 100644
--- a/lib/librte_pmd_enic/Makefile
+++ b/lib/librte_pmd_enic/Makefile
@@ -39,7 +39,8 @@ LIB = librte_pmd_enic.a
CFLAGS += -I$(RTE_SDK)/lib/librte_pmd_enic/vnic/
CFLAGS += -I$(RTE_SDK)/lib/librte_pmd_enic/
-CFLAGS += -O3 -Wno-deprecated
+CFLAGS += -O3
+CFLAGS += $(WERROR_FLAGS) -Wno-strict-aliasing
VPATH += $(RTE_SDK)/lib/librte_pmd_enic/src