From 9ed7a9b245f99928ccc0d8f7269daf9ec8351adf Mon Sep 17 00:00:00 2001 From: charlet Date: Mon, 3 Jan 2005 15:38:54 +0000 Subject: [PATCH] PR ada/17527 * init.c: Fix warnings on Free BSD section. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92841 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ada/init.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/gcc/ada/init.c b/gcc/ada/init.c index ee09192..7858a2b 100644 --- a/gcc/ada/init.c +++ b/gcc/ada/init.c @@ -6,7 +6,7 @@ * * * C Implementation File * * * - * Copyright (C) 1992-2004 Free Software Foundation, Inc. * + * Copyright (C) 1992-2005 Free Software Foundation, Inc. * * * * GNAT is free software; you can redistribute it and/or modify it under * * terms of the GNU General Public License as published by the Free Soft- * @@ -1577,14 +1577,14 @@ __gnat_initialize(void) #include #include +static void __gnat_error_handler (int, int, struct sigcontext *); + static void -__gnat_error_handler (sig, code, sc) - int sig; - int code; - struct sigcontext *sc; +__gnat_error_handler (int sig, int code __attribute__ ((unused)), + struct sigcontext *sc __attribute__ ((unused))) { struct Exception_Data *exception; - char *msg; + const char *msg; switch (sig) { @@ -1635,8 +1635,6 @@ __gnat_install_handler () (void) sigaction (SIGBUS, &act, NULL); } -void __gnat_init_float (); - void __gnat_initialize () { -- 2.7.4