Relaxed Pointer Type Rules

Use the #pragma mpwc_relax to tell the compiler to treat all pointer types as the same type. While the compiler verifies the parameters of function prototypes for compatible pointer types, it allows direct pointer assignments.

Use this setting if you are using code written before the ISO C standard. Old source code frequently uses these types interchangeably.

This setting has no effect on C++. When compiling C++ source code, the compiler differentiates char* and unsigned char* data types even if the relaxed pointer setting is enabled.

See also “mpwc_relax”, and Checking Settings.