Compiler Warning (level 3) C4646
function declared with __declspec(noreturn) has non-void return type
A function marked with the noreturn __declspec
modifier should have a void return type.
The following sample generates C4646:
// C4646.cpp
// compile with: /W3 /WX
int __declspec(noreturn) TestFunction()
{ // C4646 make return type void
}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for