bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"discards qualifiers from pointer target type" in ltdl.c


From: Stefaan
Subject: "discards qualifiers from pointer target type" in ltdl.c
Date: Thu, 18 Aug 2005 09:16:33 +0200

Hi!

I don't know how bad you want compiler warnings fixed, but since
packages seem to copy this source file I'm inclined to report it: (I
bumped into this trying to eliminate warnings out of "kaffe")

ltdl/ltdl.c contains a function strrchr with declaration (line 346)
static const char *strrchr LT_PARAMS((const char *str, int ch));

of which the result is then afterwards at more then one occasion used
for a "char *" variable.  At line 2757 there even is an explicit
assignment to the resulting char.  (All line numbers are for latest
CVS)

Personally, I think the function declaration and definition can just
be changed to used "char *" instead of "const char *".

Regards,
Stefaan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]