This initialization isn't needed, static variables are guaranteed
to be zero initialized anyway. This syntax of using an empty brace
list is only supported since C23 (even though compilers may accept
it in older language modes too).

This removes one unnecessary change from
997473bddf5b6b256599f7031064eda9a916c9d6.

Signed-off-by: Martin Storsjö <mar...@martin.st>
---
 mingw-w64-crt/crt/crt_handler.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mingw-w64-crt/crt/crt_handler.c b/mingw-w64-crt/crt/crt_handler.c
index 0a08880aa..6e0f85af5 100644
--- a/mingw-w64-crt/crt/crt_handler.c
+++ b/mingw-w64-crt/crt/crt_handler.c
@@ -34,8 +34,8 @@ extern void _fpreset (void);
 EXCEPTION_DISPOSITION __mingw_SEH_error_handler(struct _EXCEPTION_RECORD *, 
void *, struct _CONTEXT *, void *);
 
 #define MAX_PDATA_ENTRIES 32
-static RUNTIME_FUNCTION emu_pdata[MAX_PDATA_ENTRIES] = {};
-static UNWIND_INFO emu_xdata[MAX_PDATA_ENTRIES] = {};
+static RUNTIME_FUNCTION emu_pdata[MAX_PDATA_ENTRIES];
+static UNWIND_INFO emu_xdata[MAX_PDATA_ENTRIES];
 
 int
 __mingw_init_ehandler (void)
-- 
2.43.0



_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to