From 87a0418643194631acc5c92406e12b193007af02 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