This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/1749: suprrious warning when including string.h
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c/1749: suprrious warning when including string.h
- From: jdeifik at jpl dot nasa dot gov
- Date: 23 Jan 2001 22:16:58 -0000
- Reply-To: jdeifik at jpl dot nasa dot gov
>Number: 1749
>Category: c
>Synopsis: suprrious warning when including string.h
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jan 23 14:26:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: jeff deifik
>Release: gcc version 2.95.2 19991024
>Organization:
>Environment:
redhat linux 6.2
>Description:
/* repeat by:
gcc -c -g -O -Wpointer-arith gcc-bug-string.c */
/* gcc -v says:
Reading specs from /home/jdeifik/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release) */
#include <string.h>
generates:
In file included from /usr/include/string.h:346,
from gcc-bug-string.c:8:
/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
>How-To-Repeat:
gcc -c -g -O -Wpointer-arith gcc-bug-string.c
>Fix:
unknown
>Release-Note:
>Audit-Trail:
>Unformatted: