[5/5] stdio-common: Replace zero-length array with flexible-array member

Message ID 20230621213444.2017-4-cristian@rodriguez.im
State New
Headers
Series None |

Commit Message

Cristian Rodríguez June 21, 2023, 9:34 p.m. UTC
  Signed-off-by: Cristian Rodríguez <cristian@rodriguez.im>
---
 stdio-common/reg-modifier.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/stdio-common/reg-modifier.c b/stdio-common/reg-modifier.c
index a52022d1ba..d957d85a5f 100644
--- a/stdio-common/reg-modifier.c
+++ b/stdio-common/reg-modifier.c
@@ -27,7 +27,7 @@  struct printf_modifier_record
 {
   struct printf_modifier_record *next;
   int bit;
-  wchar_t str[0];
+  wchar_t str[];
 };
 
 struct printf_modifier_record **__printf_modifier_table attribute_hidden;