summaryrefslogtreecommitdiff
path: root/lib/librte_pipeline/rte_pipeline.h
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_pipeline/rte_pipeline.h
parent517b89b090547478e8e9885f55170b7ef14baab9 (diff)
downloaddpdk-next-eventdev-347a1e037fd323e6c2af55d17f7f0dc4bfe1d479.zip
dpdk-next-eventdev-347a1e037fd323e6c2af55d17f7f0dc4bfe1d479.tar.gz
dpdk-next-eventdev-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_pipeline/rte_pipeline.h')
-rw-r--r--lib/librte_pipeline/rte_pipeline.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/librte_pipeline/rte_pipeline.h b/lib/librte_pipeline/rte_pipeline.h
index 84d1802..b0b4615 100644
--- a/lib/librte_pipeline/rte_pipeline.h
+++ b/lib/librte_pipeline/rte_pipeline.h
@@ -252,7 +252,7 @@ struct rte_pipeline_table_entry {
uint32_t table_id;
};
/** Start of table entry area for user defined actions and meta-data */
- uint8_t action_data[0];
+ __extension__ uint8_t action_data[0];
};
/**