Export (0) Print
Expand All
Expand Minimize

Compiler Warning (level 4) C4702 (Windows CE 5.0)

Windows CE 5.0
Send Feedback

unreachable code

An instruction will never be executed. To generate this warning, you must use the /Og compiler option. The following program will generate C4702 on the last instruction.

#include <stdio.h>
int main() 
{
return 1;
printf("I won't print.\n");  // Unreachable.
}

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.


Show:
© 2014 Microsoft