diff mbox series

[2/6] dlfcn : annotate dls_serpath with __decl_is_flex_array

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

Patch

diff --git a/dlfcn/dlfcn.h b/dlfcn/dlfcn.h
index c5d192597d..f3a2d087f2 100644
--- a/dlfcn/dlfcn.h
+++ b/dlfcn/dlfcn.h
@@ -192,7 +192,7 @@  typedef struct
      not support structs with flexible array members in unions.  */
   __extension__ union
   {
-    Dl_serpath dls_serpath[0]; /* Actually longer, dls_cnt elements.  */
+    Dl_serpath dls_serpath[0] __decl_is_flex_array; /* Actually longer, dls_cnt elements.  */
     Dl_serpath __dls_serpath_pad[1];
   };
 # else