Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
Error Message
◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
Compiler warning (level 1) C4138
'*/' found outside of comment
The compiler found a closing comment delimiter (*/) without a
preceding opening delimiter. It assumed a space between the
asterisk (*) and the forward slash (/).
The following example causes this warning:
int */*comment*/ptr;
In this example, the compiler assumed a space before the first
comment delimiter (/*), and issued the warning but compiled the
line normally. To remove the warning, insert the assumed space.
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
-♦-