diff mbox series

[4/6] inet: annotate ip6r0_addr with __decl_is_flex_array

Message ID 20230710150454.5490-5-cristian@rodriguez.im
State New
Headers show
Series Support use of -fstrict-flex-arrays in user code | expand

Commit Message

Cristian Rodríguez July 10, 2023, 3:04 p.m. UTC
Signed-off-by: Cristian Rodríguez <cristian@rodriguez.im>
---
 inet/netinet/ip6.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/inet/netinet/ip6.h b/inet/netinet/ip6.h
index feb66a15b9..24a96bac43 100644
--- a/inet/netinet/ip6.h
+++ b/inet/netinet/ip6.h
@@ -89,7 +89,7 @@  struct ip6_rthdr0
     uint8_t  ip6r0_reserved;	/* reserved field */
     uint8_t  ip6r0_slmap[3];	/* strict/loose bit map */
     /* followed by up to 127 struct in6_addr */
-    struct in6_addr ip6r0_addr[0];
+    struct in6_addr ip6r0_addr[0] __decl_is_flex_array;
   };
 
 /* Fragment header */