Controls if the compiler generates a warning message when an integral type is explicitly converted to a pointer type or vice versa.
#pragma warn_any_ptr_int_conv on | off | reset
This pragma is useful to identify potential 64-bit pointer portability issues. An example is shown below:
#pragma warn_ptr_int_conv on short i, *ip void func() { i = (short)ip; /* WARNING: short type is not large enough to hold pointer. */ } #pragma warn_any_ptr_int_conv on void bar() { i = (int)ip; /* WARNING: pointer to integral conversion. */ ip = (short *)i; /* WARNING: integral to pointer conversion. */ }