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) C4645
Collapse the table of content
Expand the table of content

Compiler Warning (level 3) C4645

Error Message

function declared with __declspec(noreturn) has a return statement

A return statement was found in a function that is marked with the noreturn __declspec modifier. The return statement was ignored.

The following sample generates C4645:

// C4645.cpp
// compile with:  /W3
void __declspec(noreturn) func() {
   return;   // C4645, delete this line to resolve
}

int main() {
}

Community Additions

ADD
Show:
© 2015 Microsoft