From df3db5d99b0d2bdb0d4376b41ff1b8134106066c Mon Sep 17 00:00:00 2001 From: Aaron Jones Date: Wed, 1 Jun 2016 20:05:56 +0000 Subject: [PATCH] ircd: functions that call exit(3) should be marked noreturn --- include/ircd.h | 2 +- ircd/ircd.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/ircd.h b/include/ircd.h index f61afeef..28df4d5b 100644 --- a/include/ircd.h +++ b/include/ircd.h @@ -103,6 +103,6 @@ extern bool ircd_ssl_ok; extern bool ircd_zlib_ok; extern int maxconnections; -void ircd_shutdown(const char *reason); +void ircd_shutdown(const char *reason) __attribute__((noreturn)); #endif diff --git a/ircd/ircd.c b/ircd/ircd.c index 9df6a759..3b0d8011 100644 --- a/ircd/ircd.c +++ b/ircd/ircd.c @@ -66,6 +66,9 @@ #include "authproc.h" #include "operhash.h" +static void +ircd_die_cb(const char *str) __attribute__((noreturn)); + /* /quote set variables */ struct SetOptions GlobalSetOptions;