From dad9f2a0a452b188e5f45892a0882fddc50c8db9 Mon Sep 17 00:00:00 2001
From: Biswapriyo Nath <[email protected]>
Date: Sat, 4 Feb 2023 23:27:35 +0530
Subject: [PATCH] crt: Fix misleading indentation warning with gcc

This fixes the following warning
secapi/strerror_s.c:21:7: warning: this 'if' clause does not guard... 
[-Wmisleading-indentation]

Signed-off-by: Biswapriyo Nath <[email protected]>
---
 mingw-w64-crt/secapi/strerror_s.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/mingw-w64-crt/secapi/strerror_s.c 
b/mingw-w64-crt/secapi/strerror_s.c
index 3a68360..1216c41 100644
--- a/mingw-w64-crt/secapi/strerror_s.c
+++ b/mingw-w64-crt/secapi/strerror_s.c
@@ -19,8 +19,10 @@ _stub (char *buffer, size_t numberOfElements, int errnum)
       f = (errno_t __cdecl (*)(char *, size_t, int))
             GetProcAddress (__mingw_get_msvcrt_handle (), "strerror_s");
       if (!f)
+      {
         f = _int_strerror_s;
-        __MINGW_IMP_SYMBOL(strerror_s) = f;
+      }
+      __MINGW_IMP_SYMBOL(strerror_s) = f;
     }
   return (*f)(buffer, numberOfElements, errnum);
 }
-- 
2.39.1

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to