warn_impl_i2f_conv

Controls the issuing of warning messages for implicit int-to- float conversions.

Syntax
  #pragma warn_impl_i2f_conv on | off | reset   
Remarks

If you enable this pragma, the compiler issues a warning message for implicitly converting integral values to floating-point values. The following listing shows an example.

Listing: Example of implicit int-to-float conversion
#pragma warn_impl_i2f_conv on 
float f; 
signed int si; 
int main() 
{ 
 si = f; /* WARNING */ 
#pragma warn_impl_i2f_conv off 
 f = si; /* OK */ 
}