[2/6] dlfcn : annotate dls_serpath with __decl_is_flex_array

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

Checks

Context Check Description
redhat-pt-bot/TryBot-apply_patch success Patch applied to master at the time it was sent
linaro-tcwg-bot/tcwg_glibc_build--master-aarch64 success Testing passed
linaro-tcwg-bot/tcwg_glibc_check--master-aarch64 success Testing passed
linaro-tcwg-bot/tcwg_glibc_check--master-arm success Testing passed

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(-)
  

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