warn_implicitconv

Controls the issuing of warning messages for all implicit arithmetic conversions.

Syntax
  #pragma warn_implicitconv on | off | reset   
Remarks

If you enable this pragma, the compiler issues a warning message for all implicit arithmetic conversions when the destination type might not represent the source value. The following listing provides an example.

Listing: Example of Implicit Conversion
#pragma warn_implicitconv on 
float f; 
signed int si; 
unsigned int ui; 
int main() 
{ 
 f = si; /* WARNING */ 
 si = f; /* WARNING */ 
 ui = si; /* WARNING */ 
 si = ui; /* WARNING */ 
} 
Note: This option "opens the gate" for the checking of implicit conversions. The sub-pragmas warn_impl_f2i_conv, warn_impl_i2f_conv, and warn_impl_s2u_conv control the classes of conversions checked.