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. The following listing provides an example.

Listing: Example of implicit conversions between signed int and unsigned int
#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 */ 
}