["Markus F.X.J. Oberhumer" <markus.oberhumer@jk.uni-linz.ac.at>] Bug#38311: <string.h> is not -Wconversion warning free
Andreas Jaeger
aj@arthur.rhein-neckar.de
Tue May 25 22:52:00 GMT 1999
This tiny program gets some warnings from <bits/string2.h> if compiled
with -Wconversion:
#include <string.h>
int main(void)
{
return 0;
}
$ gcc -Wconversion -Werror tst.c -O2
cc1: warnings being treated as errors
/usr/include/bits/string2.h: In function `__strsep_g':
In file included from /usr/include/string.h:346,
from tst.c:1:
/usr/include/bits/string2.h:1091: warning: passing arg 2 of `__strpbrk_c2' with different width due to prototype
/usr/include/bits/string2.h:1091: warning: passing arg 3 of `__strpbrk_c2' with different width due to prototype
/usr/include/bits/string2.h:1091: warning: passing arg 2 of `__strpbrk_c3' with different width due to prototype
/usr/include/bits/string2.h:1091: warning: passing arg 3 of `__strpbrk_c3' with different width due to prototype
/usr/include/bits/string2.h:1091: warning: passing arg 4 of `__strpbrk_c3' with different width due to prototype
I don't understand the warning at the moment. Anybody else with a
fix?
Andreas
P.S. The report comes from Debian.
More information about the Libc-alpha
mailing list