This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Yet more fallout from -Werror
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 1 Nov 2003 19:21:01 -0500 (EST)
- Subject: [committed] Yet more fallout from -Werror
Noticed building on hppa1.1-hp-hpux10.20. Committed as obvious.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
2003-11-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* libgcc2.c (SYMBOL__MAIN): Provide C90 declaration.
Index: libgcc2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/libgcc2.c,v
retrieving revision 1.168
diff -u -3 -p -r1.168 libgcc2.c
--- libgcc2.c 1 Jul 2003 04:04:13 -0000 1.168
+++ libgcc2.c 2 Nov 2003 00:06:14 -0000
@@ -1690,8 +1690,9 @@ __do_global_ctors (void)
For systems which support a .init section we use the .init section
to run __do_global_ctors, so we need not do anything here. */
+extern void SYMBOL__MAIN (void);
void
-SYMBOL__MAIN ()
+SYMBOL__MAIN (void)
{
/* Support recursive calls to `main': run initializers just once. */
static int initialized;