Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 739 Bytes

compiler-warning-level-3-c4645.md

File metadata and controls

26 lines (21 loc) · 739 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning (level 3) C4645
Compiler Warning (level 3) C4645
11/04/2016
C4645
C4645
fd7c1ddf-f0d0-4e10-bab9-ccb4c3476298

Compiler Warning (level 3) C4645

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() {
}