From a28bdc7e5c60058075b6d5721f8e9433ec1893d6 Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 25 Jan 2023 04:04:26 +0000 Subject: [PATCH] openrc-shutdown: mark handler as noreturn, use _unused macro --- src/openrc-shutdown/broadcast.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/openrc-shutdown/broadcast.c b/src/openrc-shutdown/broadcast.c index 402a9fb9..05672ee0 100644 --- a/src/openrc-shutdown/broadcast.c +++ b/src/openrc-shutdown/broadcast.c @@ -44,11 +44,7 @@ static sigjmp_buf jbuf; * Alarm handler */ /*ARGSUSED*/ -# ifdef __GNUC__ -static void handler(int arg __attribute__((unused))) -# else -static void handler(int arg) -# endif +_noreturn static void handler(int arg _unused) { siglongjmp(jbuf, 1); }