Controls the issuing of warning messages for implicit float-to- int conversions.
#pragma warn_impl_f2i_conv on | off | reset
If you enable this pragma, the compiler issues a warning message for implicitly converting floating-point values to integral values. Listing: Example of Implicit float-to-int Conversion provides an example.
#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 */ }