path: root/lib/librte_sched
diff options
authorAdrien Mazarguil <>2016-09-08 14:25:04 +0200
committerThomas Monjalon <>2016-09-13 15:35:28 +0200
commit347a1e037fd323e6c2af55d17f7f0dc4bfe1d479 (patch)
tree9f23e123e0798bd8d6cdaa4b7e090cfcdc27faa2 /lib/librte_sched
parent517b89b090547478e8e9885f55170b7ef14baab9 (diff)
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 <>
Diffstat (limited to 'lib/librte_sched')
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/librte_sched/rte_bitmap.h b/lib/librte_sched/rte_bitmap.h
index ff675c5..1b5df02 100644
--- a/lib/librte_sched/rte_bitmap.h
+++ b/lib/librte_sched/rte_bitmap.h
@@ -103,7 +103,7 @@ struct rte_bitmap {
uint32_t go2; /**< Bitmap scan: Go/stop condition for current array2 cache line */
/* Storage space for array1 and array2 */
- uint8_t memory[0];
+ uint8_t memory[];
static inline void