This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c/2751: Spurious warnings in gcc 2.95.3 <stdarg.h> include files



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]