Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 658 Bytes

compiler-warning-level-3-c4646.md

File metadata and controls

23 lines (19 loc) · 658 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning (level 3) C4646
Compiler Warning (level 3) C4646
11/04/2016
C4646
C4646
23677e8e-603e-40e0-b99a-2e4894a1278e

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
}