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 47493ba39c
commit 6be270b107
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;