Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Warning (level 3) C4646
Collapse the table of content
Expand the table of content

Compiler Warning (level 3) C4646

Error Message

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
}

Community Additions

ADD
Show:
© 2015 Microsoft