openrc-shutdown: mark handler as noreturn, use _unused macro

This commit is contained in:
Sam James 2023-01-25 04:04:26 +00:00 committed by Mike Frysinger
parent bcae7d03b4
commit a28bdc7e5c

View File

@ -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);
}