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

Bug#45824: <string.h> is not -Wpointer-arith warning free any longer



Package: libc6-dev
Version: 2.1.2-1

libc6 2.1.2 breaks program which are compiled with "-O2 -Wpointer-arith -Werror"
because <string.h> is not warning free any longer. 

Fixes should be trivial.

Markus


Script started on Thu Sep 23 15:03:20 1999

mfx@laetitia:~/tmp > cat test.c
#include <string.h>
int main()
{
  return 0;
}

mfx@laetitia:~/tmp > gcc -Wpointer-arith -O2 -c test.c
In file included from /usr/include/string.h:346,
                 from test.c:1:
/usr/include/bits/string2.h: In function `__strcpy_small':
/usr/include/bits/string2.h:419: warning: pointer of type `void *' used in
arithmetic
/usr/include/bits/string2.h:427: warning: pointer of type `void *' used in
arithmetic
/usr/include/bits/string2.h:432: warning: pointer of type `void *' used in
arithmetic
/usr/include/bits/string2.h:437: warning: pointer of type `void *' used in
arithmetic
/usr/include/bits/string2.h:439: warning: pointer of type `void *' used in
arithmetic
/usr/include/bits/string2.h:444: warning: pointer of type `void *' used in
arithmetic

mfx@laetitia:~/tmp > gcc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.1/specs
gcc version 2.95.1 19990816 (release)

Script done on Thu Sep 23 15:03:45 1999


----   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          ----



Reply to: