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 * Alarm handler
*/ */
/*ARGSUSED*/ /*ARGSUSED*/
# ifdef __GNUC__ _noreturn static void handler(int arg _unused)
static void handler(int arg __attribute__((unused)))
# else
static void handler(int arg)
# endif
{ {
siglongjmp(jbuf, 1); siglongjmp(jbuf, 1);
} }