This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Why those annoying warnings?
- To: libc-alpha at sources dot redhat dot com
- Subject: Why those annoying warnings?
- From: Paolo Carlini <pcarlini at unitus dot it>
- Date: Sat, 29 Sep 2001 01:18:14 +0200
- Organization: Universita' della Tuscia
- Reply-To: pcarlini at unitus dot it
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.