From aa7b99eb77b2ec91cb611c8ee132348e50b948da Mon Sep 17 00:00:00 2001 From: Aaron Jones Date: Wed, 1 Jun 2016 20:14:09 +0000 Subject: [PATCH] restart: functions that call exit(3) should be marked noreturn --- include/restart.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/restart.h b/include/restart.h index 344456e8..770b246f 100644 --- a/include/restart.h +++ b/include/restart.h @@ -25,7 +25,7 @@ #ifndef INCLUDED_restart_h #define INCLUDED_restart_h -void restart(const char *); -void server_reboot(void); +void restart(const char *) __attribute__((noreturn)); +void server_reboot(void) __attribute__((noreturn)); #endif