From 6710c7a1caf4f6815eb5b477753458eaa85daa15 Mon Sep 17 00:00:00 2001 From: bothner Date: Sun, 26 Sep 2004 20:38:49 +0000 Subject: * prims.cc (unblock_signal): Annotate signum with __unused__ to avoid warnings in the non-POSIX_VERSION case. Also, we only need this function if either HANDLE_SEGV or HANDLE_FPE, so place it inside an #if block. * include/default-signal.h (SIGNAL_HANDLER): Parameters are __unused__. * include/i386-signal.h (SIGNAL_HANDLER): Likewise * include/mips-signal.h (SIGNAL_HANDLER): Likewise * include/sparc-signal.h (SIGNAL_HANDLER): Likewise git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88148 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/include/default-signal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libjava/include/default-signal.h') diff --git a/libjava/include/default-signal.h b/libjava/include/default-signal.h index 1c50f5f7ec3..6aea73468f5 100644 --- a/libjava/include/default-signal.h +++ b/libjava/include/default-signal.h @@ -19,7 +19,7 @@ details. */ #include #define SIGNAL_HANDLER(_name) \ -static void _name (int _dummy) +static void _name (int _dummy __attribute__ ((__unused__))) #define INIT_SEGV \ do \ -- cgit v1.2.1