Skip to content

Commit 8503e07

Browse files
committed
FIX: clang warning: function declared 'noreturn' should not return
1 parent 7af6ebe commit 8503e07

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/d-crash.c

+2
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ enum Crash_Msg_Nums {
121121
#else
122122
OS_CRASH(Crash_Msgs[CM_ERROR], buf);
123123
#endif
124+
// will not reach here, but...
125+
abort(); // just to silent the function declared 'noreturn' should not return warning
124126
}
125127

126128
/***********************************************************************

0 commit comments

Comments
 (0)