On 18.09.2024 14:06, Martin Storsjö wrote:
This avoids warnings from Clang, pointing out that this function
could be marked noreturn.
---
mingw-w64-crt/misc/wassert.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/mingw-w64-crt/misc/wassert.c b/mingw-w64-crt/misc/wassert.c
index d342048ec..b43ddaf20 100644
--- a/mingw-w64-crt/misc/wassert.c
+++ b/mingw-w64-crt/misc/wassert.c
@@ -8,6 +8,7 @@
#include <stdlib.h>
/* _wassert is not available on XP, so forward it to _assert if needed */
+__MINGW_ATTRIB_NORETURN
static void __cdecl mingw_wassert(const wchar_t *_Message, const wchar_t
*_File, unsigned _Line)
{
char *message = NULL, *file = NULL;
We could probably also get rid of free() calls after _assert() call, but
looks good to me anyway.
Thanks,
Jacek
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public