Re: Warning using -Wconversion and -Ox in gcc 4.5 and 4.6 but not in previous releases

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

 



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

-- 
*****************************************
José Luis García Pallero
jgpallero@xxxxxxxxx
(o<
/ / \
V_/_
Use Debian GNU/Linux and enjoy!
*****************************************



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux