warn_impl_f2i_conv

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

Syntax
  #pragma warn_impl_f2i_conv on | off | reset   
Remarks

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

Listing: Example of Implicit <codeph>float</codeph>-to-<codeph>int</codeph> Conversion
#pragma warn_impl_f2i_conv on 
float f; 
signed int si; 
int main() 
{ 
 f = si; /* WARNING */ 
#pragma warn_impl_f2i_conv off 
 si = f; /* OK */ 
}