Avviso del compilatore (livello 3) C4646

la funzione dichiarata con __declspec(noreturn) deve restituire un tipo non void

Una funzione contrassegnata con il modificatore noreturn __declspec deve avere un tipo restituito void.

L'esempio seguente genera l'errore C4646:

// C4646.cpp
// compile with: /W3 /WX
int __declspec(noreturn) TestFunction()
{   // C4646  make return type void
}