["Markus F.X.J. Oberhumer" <markus.oberhumer@jk.uni-linz.ac.
Markus F.X.J. Oberhumer
markus.oberhumer@jk.uni-linz.ac.at
Fri May 28 07:29:00 GMT 1999
Does this mean that the glibc 2.1 will not be -Wconversion
warning free ?
I'm asking this as -Wconversion does have some usefulness
when porting software across machines with different int sizes,
and my "-O2 -Wconversion -W... -Werror" is a real-world
example.
The problem as I see it that because of optimization parts
of the implementation become visible in the interface, and
the implementation is not fully warning free. This should
get fixed, IMHO, probably by using int params in the
internal functions.
Markus
On 27-May-1999 Ulrich Drepper wrote:
> Andreas Schwab <schwab@issan.cs.uni-dortmund.de> writes:
>
>> That's because the function is declared expecting char parameters, but
>> strpbrk is passing ints due to the usual integer promotions. This warning
>> is completely useless
>
> I agree. We don't want to support this stupid warning.
----- Markus F.X.J. Oberhumer <markus.oberhumer@jk.uni-linz.ac.at> -----
----- http://wildsau.idv.uni-linz.ac.at/mfx/ -----
----- 5E CB 5C 85 DE AF 9E BF E9 DA 7E 6A 39 F8 CC 67 -----
3 WARPS TO URANUS
More information about the Libc-alpha
mailing list