This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
A small patch
- To: egcs-patches at cygnus dot com
- Subject: A small patch
- From: hjl at lucon dot org (H.J. Lu)
- Date: Thu, 10 Dec 1998 14:59:53 -0800 (PST)
Hi,
This patch is for -Wstrict-prototypes.
--
H.J. Lu (hjl@gnu.org)
---
Thu Dec 10 07:54:18 1998 H.J. Lu (hjl@gnu.org)
* crtstuff.c: Get rid of warnings.
Index: crtstuff.c
===================================================================
RCS file: /home/work/cvs/gnu/egcs/gcc/crtstuff.c,v
retrieving revision 1.1.1.12
diff -u -p -r1.1.1.12 crtstuff.c
--- crtstuff.c 1998/09/23 13:59:53 1.1.1.12
+++ crtstuff.c 1998/12/10 22:52:33
@@ -129,7 +134,7 @@ typedef void (*func_ptr) (void);
static char __EH_FRAME_BEGIN__[];
static func_ptr __DTOR_LIST__[];
static void
-__do_global_dtors_aux ()
+__do_global_dtors_aux (void)
{
static func_ptr *p = __DTOR_LIST__ + 1;
static int completed = 0;
@@ -153,7 +161,7 @@ __do_global_dtors_aux ()
/* Stick a call to __do_global_dtors_aux into the .fini section. */
static void __attribute__ ((__unused__))
-fini_dummy ()
+fini_dummy (void)
{
asm (FINI_SECTION_ASM_OP);
__do_global_dtors_aux ();
@@ -328,7 +345,7 @@ char __EH_FRAME_BEGIN__[] = { };
static func_ptr __CTOR_END__[];
static void
-__do_global_ctors_aux ()
+__do_global_ctors_aux (void)
{
func_ptr *p;
for (p = __CTOR_END__ - 1; *p != (func_ptr) -1; p--)
@@ -338,7 +355,7 @@ __do_global_ctors_aux ()
/* Stick a call to __do_global_ctors_aux into the .init section. */
static void __attribute__ ((__unused__))
-init_dummy ()
+init_dummy (void)
{
asm (INIT_SECTION_ASM_OP);
__do_global_ctors_aux ();
@@ -356,6 +373,7 @@ init_dummy ()
{
extern void *___brk_addr;
extern char **__environ;
+ extern void atexit (void);
___brk_addr = __environ;
atexit ();