diff --git a/include/ircd.h b/include/ircd.h index 1ce53667..b04fa7ff 100644 --- a/include/ircd.h +++ b/include/ircd.h @@ -106,6 +106,6 @@ extern int ircd_ssl_ok; extern int ircd_zlib_ok; extern int maxconnections; -void ircd_shutdown(const char *reason); +void ircd_shutdown(const char *reason) __attribute__((noreturn)); #endif diff --git a/src/ircd.c b/src/ircd.c index c3fad18d..146fedac 100644 --- a/src/ircd.c +++ b/src/ircd.c @@ -432,7 +432,7 @@ ircd_restart_cb(const char *str) * exception, so it is logical to return a FAILURE exit code here. * --nenolod */ -static void +static void __attribute__((noreturn)) ircd_die_cb(const char *str) { if(str != NULL)