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

If you enable this pragma, the compiler issues a warning message for implicitly converting either from signed int to unsigned int or vice versa. Listing: Example of implicit conversions between signed int and unsigned int provides an example.

Listing: Example of implicit conversions between <codeph>signed int</codeph> and <codeph>unsigned int</codeph>

#pragma warn_impl_s2u_conv on

signed int si;

unsigned int ui;

int main()

{

    ui = si; /* WARNING */

    si = ui; /* WARNING */

#pragma warn_impl_s2u_conv off

    ui = si; /* OK */

    si = ui; /* OK */

}