diff mbox series

[6/6] misc: annotate q_data with __decl_is_flex_array

Message ID 20230710150454.5490-7-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>
---
 misc/search.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/misc/search.h b/misc/search.h
index 30191d40cc..f1b1e63cae 100644
--- a/misc/search.h
+++ b/misc/search.h
@@ -35,7 +35,7 @@  struct qelem
   {
     struct qelem *q_forw;
     struct qelem *q_back;
-    char q_data[1];
+    char q_data[1] __decl_is_flex_array;
   };
 # endif