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. Listing: Example of implicit int-to-float conversion shows an example.

Listing: Example of implicit <codeph>int</codeph>-to-<codeph>float</codeph> 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 */

}