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:
parent
a8517ee77c
commit
9b7cc82b90
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue