This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/2751: Spurious warnings in gcc 2.95.3 <stdarg.h> include files
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c/2751: Spurious warnings in gcc 2.95.3 <stdarg.h> include files
- From: mtodorov at alu dot hr
- Date: 6 May 2001 13:26:10 -0000
- Reply-To: mtodorov at alu dot hr
>Number: 2751
>Category: c
>Synopsis: Spurious warnings in gcc 2.95.3 <stdarg.h> include files
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: wrong-code
>Submitter-Id: net
>Arrival-Date: Sun May 06 06:36:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Mirsad Todorovac
>Release: gcc-2.95.3
>Organization:
>Environment:
alpha-osf-4.0b
GNU make 3.79
tcsh 6.10.00
>Description:
In every more complex program compiled, when <stdarg.h>
is included, this type of warnings occur. I couldn't
see an example that a program was wrong-compiled beacuse
of this, but on the other hand no evidence exists that
there are no errors in compilation indicated by this
warnings.
Example:
gcc -I../ncurses -I. -DNDEBUG -I. -I../include -I/usr/local/include/ncurses -DHAVE_CONFIG_H -O2 -c ../ncurses/./tty/hashmap.c -DPIC -o .libs/hashmap.lo
In file included from /usr/local/lib/gcc-lib/alpha-dec-osf4.0b/2.95.3/include/stdarg.h:36,
from ../include/curses.h:80,
from ../ncurses/curses.priv.h:236,
from ../ncurses/./tty/hashmap.c:70:
/usr/local/lib/gcc-lib/alpha-dec-osf4.0b/2.95.3/include/va-alpha.h:36: warning: redefinition of `va_list'
/usr/local/lib/gcc-lib/alpha-dec-osf4.0b/2.95.3/include/va_list.h:7: warning: `va_list' previously declared here
>How-To-Repeat:
When building gcc-2.95.3, use default, fast fixinclude
mechanism. I haven't checked out whether the error occurs
when older fixinclude scripts are used.
>Fix:
?
>Release-Note:
>Audit-Trail:
>Unformatted: