From 35e46cd8b8d17cfc4423ab1a9740f7ce0bae8a12 Mon Sep 17 00:00:00 2001 From: Olivier Hainque Date: Wed, 2 Sep 2009 13:35:13 +0000 Subject: [PATCH] init.c (__gnat_error_handler, AIX): Add ATTRIBUTE_UNUSED on si and uc arguments. * init.c (__gnat_error_handler, AIX): Add ATTRIBUTE_UNUSED on si and uc arguments. From-SVN: r151329 --- gcc/ada/ChangeLog | 5 +++++ gcc/ada/init.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index aab6b980963..21dd495c357 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2009-09-02 Olivier Hainque + + * init.c (__gnat_error_handler, AIX): Add ATTRIBUTE_UNUSED on si + and uc arguments. + 2009-09-02 Olivier Hainque * gcc-interface/decl.c (cannot_be_superflat_p): Handle diff --git a/gcc/ada/init.c b/gcc/ada/init.c index ffea0e66ce2..dff21ef7410 100644 --- a/gcc/ada/init.c +++ b/gcc/ada/init.c @@ -217,7 +217,9 @@ nanosleep (struct timestruc_t *Rqtp, struct timestruc_t *Rmtp) static void __gnat_error_handler (int sig, siginfo_t * si, void * uc); static void -__gnat_error_handler (int sig, siginfo_t * si, void * uc) +__gnat_error_handler (int sig, + siginfo_t * si ATTRIBUTE_UNUSED, + void * uc ATTRIBUTE_UNUSED) { struct Exception_Data *exception; const char *msg;