warn_impl_i2f_conv. NXP CodeWarrior Development Studio
Annonce
Annonce
Chapter 31 Pragmas for Diagnostic Messages
si = f; /* OK */
}
By default, this pragma is on
.
31.21 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 31-13 on page 479 shows an
example.
Listing 31-13. Example of implicit int
-to- float
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 */
}
By default, this pragma is off
.
31.22 warn_impl_s2u_conv
Controls the issuing of warning messages for implicit conversions between the signed int and unsigned int
data types.
Syntax
#pragma warn_impl_s2u_conv on | off | reset
Remarks
CodeWarrior Development Studio for Power Architecture Processors Build Tools Reference Manual, Rev.
10.6, 02/2014
Freescale Semiconductor, Inc.
479
Download
Annonce