Commit 02d06776 by Arnaud Charlet

re PR ada/17527 (Ada Bootstrap problem because of -Werror)

	PR ada/17527
	* init.c: Fix warnings on Free BSD section.

From-SVN: r92841
parent 8bded583
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* * * *
* C Implementation File * * 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 * * 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- * * terms of the GNU General Public License as published by the Free Soft- *
...@@ -1577,14 +1577,14 @@ __gnat_initialize(void) ...@@ -1577,14 +1577,14 @@ __gnat_initialize(void)
#include <signal.h> #include <signal.h>
#include <unistd.h> #include <unistd.h>
static void __gnat_error_handler (int, int, struct sigcontext *);
static void static void
__gnat_error_handler (sig, code, sc) __gnat_error_handler (int sig, int code __attribute__ ((unused)),
int sig; struct sigcontext *sc __attribute__ ((unused)))
int code;
struct sigcontext *sc;
{ {
struct Exception_Data *exception; struct Exception_Data *exception;
char *msg; const char *msg;
switch (sig) switch (sig)
{ {
...@@ -1635,8 +1635,6 @@ __gnat_install_handler () ...@@ -1635,8 +1635,6 @@ __gnat_install_handler ()
(void) sigaction (SIGBUS, &act, NULL); (void) sigaction (SIGBUS, &act, NULL);
} }
void __gnat_init_float ();
void void
__gnat_initialize () __gnat_initialize ()
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment