openrc-shutdown: mark handler as noreturn, use _unused macro
This commit is contained in:
parent
bcae7d03b4
commit
a28bdc7e5c
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user