jacob navia wrote:
> When compiling with -Wall I always get the warning
> ./dictionary.c:156: warning: pointer targets in passing argument 1 to
> strcmp differ in signedness
>
> I alwyays use unsigned chars for my text data, since there are no
> negative character, just character codes. Problem is, strcmp expects
> chars, and gcc thinks that chars are signed by default, what is
> all correct of course, but annoying.
>
> Is there any way to convince it to avoid putting this warning?
Use char.
"If you lie to the compiler, it will get its revenge."
-- Henry Spencer
--
Eric Sosman
lid