在 2023-07-15 13:39, Biswapriyo Nath 写道:
 From 500289eff11712010d492af19860c27303619121 Mon Sep 17 00:00:00 2001
From: Biswapriyo Nath<[email protected]>
Date: Sat, 15 Jul 2023 11:04:46 +0530
Subject: [PATCH] crt: Add noreturn attribute with _amsg_exit

This fixes the following compiler warning

ucrtbase_compat.c:105:34: warning: function `_amsg_exit' could be
declared with attribute `noreturn' [-Wmissing-noreturn]
void __cdecl _amsg_exit(int ret) {
                                  ^

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

Maybe it's better to have `__MINGW_ATTRIB_NORETURN` instead of `__attribute__((__noreturn__))` here, just for consistency with the other declarations.


--
Best regards,
LIU Hao

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

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

Reply via email to