diff options
author | Sam James <sam@gentoo.org> | 2023-01-25 04:04:26 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gmail.com> | 2023-01-25 01:11:25 -0500 |
commit | a28bdc7e5c60058075b6d5721f8e9433ec1893d6 (patch) | |
tree | c6027b1d95d78273a35a74c11ca6c446ff467d0b /src | |
parent | bcae7d03b47e0697eda6992667b8053e3484c8ff (diff) |
openrc-shutdown: mark handler as noreturn, use _unused macro
Diffstat (limited to 'src')
-rw-r--r-- | src/openrc-shutdown/broadcast.c | 6 |
1 files changed, 1 insertions, 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); } |