ID Number: Q61305
6.00 6.00a 6.00ax | 6.00 6.00a
MS-DOS | OS/2
docerr
Summary:
Compiler warning C4018 is not documented in the online help files that
come with the Microsoft C versions 6.0, 6.0a and 6.0ax compilers.
C4018 is a warning message that is new to C 6.0, and it is generated
at warning level 3 or 4 when the compiler finds code comparing a
signed and an unsigned data type.
This information has been incorporated into the C/C++ version 7.0
help files.
Sample Code
------------
The following code generates C4018 at warning level 3 or 4:
unsigned int u = 2;
int i = 1;
void main ( void )
{
if ( i == u ) // Warning is generated on this line.
i = 0;
}
Additional reference words: 6.00 6.00a 6.00ax