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. Example of Implicit float -to- int Conversion provides an example.

Listing 1. Example of Implicit float -to- int 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 */
}

By default, this pragma is on .

Related information
extended_errorcheck
maxerrorcount
message
showmessagenumber
show_error_filestack
suppress_warnings
sym
unused
warning
warning_errors
warn_any_ptr_int_conv
warn_emptydecl
warn_extracomma
warn_filenamecaps
warn_filenamecaps_system
warn_hiddenlocals
warn_illpragma
warn_illtokenpasting
warn_illunionmembers
warn_impl_i2f_conv
warn_impl_s2u_conv
warn_implicitconv
warn_largeargs
warn_missingreturn
warn_no_side_effect
warn_padding
warn_pch_portability
warn_possunwant
warn_ptr_int_conv
warn_resultnotused
warn_undefmacro
warn_uninitializedvar
warn_unusedarg
warn_unusedvar