ircd: functions that call exit(3) should be marked noreturn

This commit is contained in:
Aaron Jones 2016-06-01 20:05:56 +00:00
parent 341560ecf2
commit df3db5d99b
No known key found for this signature in database
GPG Key ID: 6E854C0FAAD4CEA4
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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;