ircd: misc cleanup for compiler warnings

ircd.c:125:1: warning: function 'ircd_shutdown' could be declared with
              attribute 'noreturn' [-Wmissing-noreturn]

ircd.c:437:1: warning: function 'ircd_die_cb' could be declared with
              attribute 'noreturn' [-Wmissing-noreturn]
This commit is contained in:
Aaron Jones 2017-07-31 01:09:52 +00:00
parent a8517ee77c
commit 9b7cc82b90
No known key found for this signature in database
GPG key ID: 8AF0737488AB3012
2 changed files with 2 additions and 2 deletions

View file

@ -106,6 +106,6 @@ extern int ircd_ssl_ok;
extern int ircd_zlib_ok; extern int ircd_zlib_ok;
extern int maxconnections; extern int maxconnections;
void ircd_shutdown(const char *reason); void ircd_shutdown(const char *reason) __attribute__((noreturn));
#endif #endif

View file

@ -432,7 +432,7 @@ ircd_restart_cb(const char *str)
* exception, so it is logical to return a FAILURE exit code here. * exception, so it is logical to return a FAILURE exit code here.
* --nenolod * --nenolod
*/ */
static void static void __attribute__((noreturn))
ircd_die_cb(const char *str) ircd_die_cb(const char *str)
{ {
if(str != NULL) if(str != NULL)