Zero length arrays are GNU extension. Replace with
standard flex array.

Signed-off-by: Stephen Hemminger <step...@networkplumber.org>
Reviewed-by: Tyler Retzlaff <roret...@linux.microsoft.com>
---
 lib/pipeline/rte_swx_pipeline_internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/pipeline/rte_swx_pipeline_internal.h 
b/lib/pipeline/rte_swx_pipeline_internal.h
index a67b6e965de7..8ec12263b989 100644
--- a/lib/pipeline/rte_swx_pipeline_internal.h
+++ b/lib/pipeline/rte_swx_pipeline_internal.h
@@ -213,7 +213,7 @@ TAILQ_HEAD(rss_tailq, rss);
 
 struct rss_runtime {
        uint32_t key_size; /* key size in bytes. */
-       uint8_t key[0]; /* key. */
+       uint8_t key[]; /* key. */
 };
 
 /*
-- 
2.42.0

Reply via email to