From 2359f288126edd03f2a5bdff3bfd13b9623e9c80 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Tue, 22 Dec 2020 12:26:06 +0100 Subject: [PATCH] =?UTF-8?q?Remove=20compiler=20warning=20cast=20between=20?= =?UTF-8?q?incompatible=20function=20types=20from=20=E2=80=98void=20(*)(in?= =?UTF-8?q?t,=20=20int)=E2=80=99=20to=20=E2=80=98void=20(*)(int)=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/signal_handler.c | 4 +--- src/frontend/signal_handler.h | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/frontend/signal_handler.c b/src/frontend/signal_handler.c index 09992e693..249471be0 100644 --- a/src/frontend/signal_handler.c +++ b/src/frontend/signal_handler.c @@ -104,10 +104,8 @@ ft_sigintr(void) RETSIGTYPE -sigfloat(int sig, int code) +sigfloat(int code) { - NG_IGNORE(sig); - fperror("Error", code); rewind(cp_out); (void) signal(SIGFPE, (SIGNAL_FUNCTION) sigfloat); diff --git a/src/frontend/signal_handler.h b/src/frontend/signal_handler.h index a528b2614..cfe1eca46 100644 --- a/src/frontend/signal_handler.h +++ b/src/frontend/signal_handler.h @@ -7,7 +7,7 @@ #define ngspice_SIGNAL_HANDLER_H RETSIGTYPE ft_sigintr(void); -RETSIGTYPE sigfloat(int sig, int code); +RETSIGTYPE sigfloat(int code); RETSIGTYPE sigstop(void); RETSIGTYPE sigcont(void); RETSIGTYPE sigill(void);