Why those annoying warnings?

Paolo Carlini pcarlini@unitus.it
Fri Sep 28 16:19:00 GMT 2001


Hi,

I noticed that long series of annoying warnings are issued by gcc2.95.3
while compiling sources including glibc2.2.x's
/usr/include/bits/string2.h . For instance, from OpenSSH:

-------------
make[1]: Entering directory `/home/paolo/openssh-2.9.9p2/openbsd-compat'

gcc -g -O2 -Wall -Wpointer-arith -Wno-uninitialized -I. -I.. -I. -I./..
-I/usr/local/ssl/include  -DHAVE_CONFIG_H -c bsd-arc4random.c
In file included from /usr/include/string.h:360,
                 from /usr/include/sys/un.h:38,
                 from ../defines.h:15,
                 from ../config.h:780,
                 from ../includes.h:22,
                 from bsd-arc4random.c:25:
/usr/include/bits/string2.h: In function `__strcpy_small':
/usr/include/bits/string2.h:418: warning: pointer of type `void *' used
in arithmetic
/usr/include/bits/string2.h:426: warning: pointer of type `void *' used
in arithmetic
/usr/include/bits/string2.h:431: warning: pointer of type `void *' used
in arithmetic
/usr/include/bits/string2.h:436: warning: pointer of type `void *' used
in arithmetic
/usr/include/bits/string2.h:438: warning: pointer of type `void *' used
in arithmetic
/usr/include/bits/string2.h:443: warning: pointer of type `void *' used
in arithmetic
-------------

Could please someone in the know explain the reason of this??

Thanks,
Paolo Carlini.



More information about the Libc-alpha mailing list