Controls the issuing of warning messages for implicit int -to- float conversions.
#pragma warn_impl_i2f_conv on | off | reset
If you enable this pragma, the compiler issues a warning message for implicitly converting integral values to floating-point values. Example of implicit int -to- float conversion shows an example.
#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 */
}
By default, this pragma is off .