On Sun, 5 Jun 2011, José Luis García Pallero wrote:
El día 5 de junio de 2011 16:17, Marc Glisse <marc.glisse@xxxxxxxx> escribió:
On Sun, 5 Jun 2011, José Luis García Pallero wrote:
Hello,
Three months ago I sent this mail to gcc-help:
http://gcc.gnu.org/ml/gcc-help/2011-03/msg00064.html
The behavior in gcc 4.6 release persists. I don't know if it is a bug
exactly (in the original mail, some says that is a bug and some no).
There is no shame in filing a bug report without being absolutely certain.
In this case you could file one for gcc asking to improve the warning
(casting the constant 0 won't change its sign...), and one against glibc
asking that they explicitly cast 0 to size_t, after looking a bit if you can
find anything similar already reported. I am not saying either change will
happen, but it seems like a resonable strategy. And you may get interesting
comments on the bug reports.
But the warning is about the strspn() function instead of return 0; sentence
Then file the bug reports saying only what you understand. (the warning is
about code in bits/string2.h)
--
Marc Glisse