summaryrefslogtreecommitdiff
path: root/lib/librte_acl
diff options
context:
space:
mode:
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>2016-09-08 14:25:04 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-09-13 15:35:28 +0200
commit347a1e037fd323e6c2af55d17f7f0dc4bfe1d479 (patch)
tree9f23e123e0798bd8d6cdaa4b7e090cfcdc27faa2 /lib/librte_acl
parent517b89b090547478e8e9885f55170b7ef14baab9 (diff)
downloaddpdk-347a1e037fd323e6c2af55d17f7f0dc4bfe1d479.zip
dpdk-347a1e037fd323e6c2af55d17f7f0dc4bfe1d479.tar.gz
dpdk-347a1e037fd323e6c2af55d17f7f0dc4bfe1d479.tar.xz
lib: use C99 syntax for zero-size arrays
Exported header files used by applications should allow the strictest compiler flags. Language extensions used in many places must be explicitly marked or removed to avoid warnings and compilation failures. The extension keyword is used whenever the C99 syntax cannot do it. This commit prevents the following errors: error: ISO C forbids zero-size array `[...]' Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Diffstat (limited to 'lib/librte_acl')
-rw-r--r--lib/librte_acl/rte_acl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/librte_acl/rte_acl.h b/lib/librte_acl/rte_acl.h
index 8d4e2a6..caa91f7 100644
--- a/lib/librte_acl/rte_acl.h
+++ b/lib/librte_acl/rte_acl.h
@@ -144,7 +144,7 @@ struct rte_acl_rule_data {
struct rte_acl_field field[fld_num]; \
}
-RTE_ACL_RULE_DEF(rte_acl_rule, 0);
+RTE_ACL_RULE_DEF(rte_acl_rule,);
#define RTE_ACL_RULE_SZ(fld_num) \
(sizeof(struct rte_acl_rule) + sizeof(struct rte_acl_field) * (fld_num))