File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ namespace {
42
42
_EXTERN_C
43
43
44
44
// TRANSITION, ABI: _Thrd_exit() is preserved for binary compatibility
45
- _CRTIMP2_PURE void _Thrd_exit (int res) { // terminate execution of calling thread
45
+ [[noreturn]] _CRTIMP2_PURE void _Thrd_exit (int res) { // terminate execution of calling thread
46
46
_endthreadex (res);
47
47
}
48
48
Original file line number Diff line number Diff line change 13
13
14
14
#include " primitives.hpp"
15
15
16
- extern " C" _CRTIMP2_PURE void _Thrd_abort (const char * msg) { // abort on precondition failure
16
+ extern " C" [[noreturn]] _CRTIMP2_PURE void _Thrd_abort (const char * msg) { // abort on precondition failure
17
17
fputs (msg, stderr);
18
18
fputc (' \n ' , stderr);
19
19
abort ();
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ extern "C" NTSYSAPI _Success_(return != 0) WORD NTAPI
35
35
namespace Concurrency {
36
36
37
37
namespace details {
38
- _CRTIMP2 void __cdecl _ReportUnobservedException () {
38
+ [[noreturn]] _CRTIMP2 void __cdecl _ReportUnobservedException () {
39
39
40
40
#if (defined(_M_IX86) || defined(_M_X64)) && !defined(_CRT_APP)
41
41
if (IsProcessorFeaturePresent (PF_FASTFAIL_AVAILABLE))
You can’t perform that action at this time.
0 commit comments