From mboxrd@z Thu Jan 1 00:00:00 1970 From: mtodorov@alu.hr To: gcc-gnats@gcc.gnu.org Subject: c/2751: Spurious warnings in gcc 2.95.3 include files Date: Sun, 06 May 2001 06:36:00 -0000 Message-id: <20010506132610.14325.qmail@sourceware.cygnus.com> X-SW-Source: 2001-05/msg00164.html List-Id: >Number: 2751 >Category: c >Synopsis: Spurious warnings in gcc 2.95.3 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 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: