Controls the issuing of warning messages for implicit conversions between the signed int and unsigned int data types.
#pragma warn_impl_s2u_conv on | off | reset
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.
#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 */ }