summaryrefslogtreecommitdiff
path: root/gcc/ada/tracebak.c
diff options
context:
space:
mode:
authorguerby <guerby@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-17 11:35:08 +0000
committerguerby <guerby@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-17 11:35:08 +0000
commit0f13b49dace06a6e21336b2888ffb3257f0cadbf (patch)
tree39e493e87df2945a110142da9ac42207c0aaa146 /gcc/ada/tracebak.c
parenta2ebaaac869d44c8963a1890dadea6037615b103 (diff)
downloadgcc-0f13b49dace06a6e21336b2888ffb3257f0cadbf.tar.gz
2001-11-17 Laurent Guerby <guerby@acm.org>
* Make-lang.in (GNATLIBFLAGS): Add -W -Wall. * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing. * io-aux.c: Provide K&R prototypes to all functions, reformat code. * lang-spec.h: Add missing struct field to silence warnings. * sysdep.c (rts_get_*): Provide K&R prototype. * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype. * traceback.c (Unlock_Task, Lock_Task): Likewise. * tracebak.c (__gnat_backtrace): Remove unused variable. * utils.c (end_subprog_body): Move to K&R style. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47117 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/tracebak.c')
-rw-r--r--gcc/ada/tracebak.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/ada/tracebak.c b/gcc/ada/tracebak.c
index 890d0e8d8c6..287e8d4608b 100644
--- a/gcc/ada/tracebak.c
+++ b/gcc/ada/tracebak.c
@@ -6,7 +6,7 @@
* *
* C Implementation File *
* *
- * $Revision$
+ * $Revision: 1.2 $
* *
* Copyright (C) 2000-2001 Ada Core Technologies, Inc. *
* *
@@ -61,10 +61,10 @@
#endif
#define Lock_Task system__soft_links__lock_task
-extern void (*Lock_Task) (void);
+extern void (*Lock_Task) PARAMS ((void));
#define Unlock_Task system__soft_links__unlock_task
-extern void (*Unlock_Task) (void);
+extern void (*Unlock_Task) PARAMS ((void));
#ifndef CURRENT_STACK_FRAME
# define CURRENT_STACK_FRAME ({ char __csf; &__csf; })
@@ -202,7 +202,6 @@ __gnat_backtrace (array, size, exclude_min, exclude_max)
struct layout *current;
void *top_frame;
void *top_stack;
- void *ret;
int cnt = 0;
#ifdef PROTECT_SEGV