Re: gcc 4 signed vs unsigned char



Keith Thompson wrote:
>
> gcc 4.0.0 produces the warning "pointer targets in initialization
> differ in signedness" for both of the following lines:
>
> signed char *ps = "signed?";
> unsigned char *pu = "unsigned?";

I don't pretend to speak for anyone else here, but for me that
error message is more informative and allows me to understand
the error more quickly than "pointer targets are incompatible"
would.

.



Relevant Pages