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:
int __declspec(noreturn) bar() { // C4546, make return type void } void main() { }