Compiler Warning (level 1) C4138

'*/' found outside of comment

The compiler found a closing comment delimiter (*/) without a preceding opening delimiter. The compiler assumed a space between the asterisk (*) and the forward slash (/).

The following example generates this warning:

int */*comment*/ptr;

In this example, the first comment delimiter is ambiguous.

Usually, the cause of this warning is an attempt to nest comments.

To comment out sections of code that may contain comments, enclose the code in an #if/#endif block and set the controlling expression to zero, as in:

#if 0
int my_variable;   /* Declaration currently not needed */
#endif