diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-04-06 16:27:39 +0200 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2020-04-11 14:06:55 +0200 |
commit | d6da3282ea865b8c39fab3e7026296fa922e1a64 (patch) | |
tree | 9ef13a604ad5896fcdc089e54c141e73beade00e /src | |
parent | 0eee0523918a72f45bf3ffe3cd42c3182ed6f95e (diff) | |
download | rspamd-d6da3282ea865b8c39fab3e7026296fa922e1a64.tar.gz rspamd-d6da3282ea865b8c39fab3e7026296fa922e1a64.zip |
[Minor] Enable missing_noreturn compiler warning
Diffstat (limited to 'src')
-rw-r--r-- | src/controller.c | 1 | ||||
-rw-r--r-- | src/fuzzy_storage.c | 1 | ||||
-rw-r--r-- | src/libcryptobox/cryptobox.c | 1 | ||||
-rw-r--r-- | src/rspamadm/configdump.c | 1 | ||||
-rw-r--r-- | src/rspamadm/confighelp.c | 1 | ||||
-rw-r--r-- | src/rspamd_proxy.c | 1 | ||||
-rw-r--r-- | src/worker.c | 1 |
7 files changed, 7 insertions, 0 deletions
diff --git a/src/controller.c b/src/controller.c index cfea10971..4ed3f187c 100644 --- a/src/controller.c +++ b/src/controller.c @@ -3477,6 +3477,7 @@ rspamd_controller_register_plugins_paths (struct rspamd_controller_worker_ctx *c /* * Start worker process */ +__attribute__((noreturn)) void start_controller_worker (struct rspamd_worker *worker) { diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index b6d7d8ee7..5eb403ce7 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -2120,6 +2120,7 @@ fuzzy_peer_rep (struct rspamd_worker *worker, /* * Start worker process */ +__attribute__((noreturn)) void start_fuzzy (struct rspamd_worker *worker) { diff --git a/src/libcryptobox/cryptobox.c b/src/libcryptobox/cryptobox.c index 414dbdfa1..4ef366b33 100644 --- a/src/libcryptobox/cryptobox.c +++ b/src/libcryptobox/cryptobox.c @@ -93,6 +93,7 @@ rspamd_cryptobox_cpuid (gint cpu[4], gint info) static sig_atomic_t ok = 0; static jmp_buf j; +__attribute__((noreturn)) static void rspamd_cryptobox_ill_handler (int signo) { diff --git a/src/rspamadm/configdump.c b/src/rspamadm/configdump.c index 90f751487..bbdb58c17 100644 --- a/src/rspamadm/configdump.c +++ b/src/rspamadm/configdump.c @@ -230,6 +230,7 @@ rspamadm_dump_section_obj (struct rspamd_config *cfg, } } +__attribute__((noreturn)) static void rspamadm_configdump (gint argc, gchar **argv, const struct rspamadm_command *cmd) { diff --git a/src/rspamadm/confighelp.c b/src/rspamadm/confighelp.c index f5695ed53..c40891216 100644 --- a/src/rspamadm/confighelp.c +++ b/src/rspamadm/confighelp.c @@ -190,6 +190,7 @@ rspamadm_confighelp_search_word (const ucl_object_t *obj, const gchar *str) return res; } +__attribute__((noreturn)) static void rspamadm_confighelp (gint argc, gchar **argv, const struct rspamadm_command *cmd) { diff --git a/src/rspamd_proxy.c b/src/rspamd_proxy.c index ffcbf5824..83ae3785c 100644 --- a/src/rspamd_proxy.c +++ b/src/rspamd_proxy.c @@ -2282,6 +2282,7 @@ adjust_upstreams_limits (struct rspamd_proxy_ctx *ctx) } } +__attribute__((noreturn)) void start_rspamd_proxy (struct rspamd_worker *worker) { diff --git a/src/worker.c b/src/worker.c index ad7f12674..1a3b118c8 100644 --- a/src/worker.c +++ b/src/worker.c @@ -477,6 +477,7 @@ init_worker (struct rspamd_config *cfg) /* * Start worker process */ +__attribute__((noreturn)) void start_worker (struct rspamd_worker *worker) { |