On 3/7/11 11:15 AM, Jim Meyering wrote:
Shame on me.
I forgot string.h and -Wall ;-)
With the former and -O3, I do see your warning.
Shame on me as well, -O1 or better would be needed since otherwise
you're never going to hit the simplification logic that would introduce
this message.
I find it a little comical that glibc does this given that gcc has this
level of constant expression elimination built in, but hey, why solve
any problem only once.
- ajax