0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-28 00:14:07 +01:00

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;