aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDuncan Bellamy <dunk@denkimushi.com>2020-12-27 22:41:12 +0000
committerDuncan Bellamy <dunk@denkimushi.com>2020-12-29 23:20:38 +0000
commitd7738db6970c4cd838be067293abcdb5abc6a71c (patch)
treea7f54443bbb3ac6cc19522b113afff96e2899958 /src
parentd6fcb8bd182e9646166ef446a1dfd03eff6417f0 (diff)
downloadrspamd-d7738db6970c4cd838be067293abcdb5abc6a71c.tar.gz
rspamd-d7738db6970c4cd838be067293abcdb5abc6a71c.zip
[Minor] Fix some compiler warnings
Diffstat (limited to 'src')
-rw-r--r--src/fuzzy_storage.c4
-rw-r--r--src/libcryptobox/cryptobox.c2
-rw-r--r--src/libserver/re_cache.c2
-rw-r--r--src/rspamd.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c
index 6d046fcdb..316e19d0e 100644
--- a/src/fuzzy_storage.c
+++ b/src/fuzzy_storage.c
@@ -807,7 +807,7 @@ static void
rspamd_fuzzy_check_callback (struct rspamd_fuzzy_reply *result, void *ud)
{
struct fuzzy_session *session = ud;
- gboolean encrypted = FALSE, is_shingle = FALSE;
+ gboolean is_shingle = FALSE, __attribute__ ((unused)) encrypted = FALSE;
struct rspamd_fuzzy_cmd *cmd = NULL;
const struct rspamd_shingle *shingle = NULL;
struct rspamd_shingle sgl_cpy;
@@ -970,7 +970,7 @@ rspamd_fuzzy_check_callback (struct rspamd_fuzzy_reply *result, void *ud)
static void
rspamd_fuzzy_process_command (struct fuzzy_session *session)
{
- gboolean encrypted = FALSE, is_shingle = FALSE;
+ gboolean is_shingle = FALSE, __attribute__ ((unused)) encrypted = FALSE;
struct rspamd_fuzzy_cmd *cmd = NULL;
struct rspamd_fuzzy_reply result;
struct fuzzy_peer_cmd up_cmd;
diff --git a/src/libcryptobox/cryptobox.c b/src/libcryptobox/cryptobox.c
index cb875c026..e592eccdf 100644
--- a/src/libcryptobox/cryptobox.c
+++ b/src/libcryptobox/cryptobox.c
@@ -70,7 +70,7 @@ static const guchar n0[16] = {0};
static void
rspamd_cryptobox_cpuid (gint cpu[4], gint info)
{
- guint32 eax, ecx = 0, ebx = 0, edx = 0;
+ guint32 __attribute__ ((unused)) eax, __attribute__ ((unused)) ecx = 0, __attribute__ ((unused)) ebx = 0, __attribute__ ((unused)) edx = 0;
eax = info;
#if defined(__GNUC__) && (defined(__x86_64__) || defined(__i386__))
diff --git a/src/libserver/re_cache.c b/src/libserver/re_cache.c
index b2596d0f4..d8e6d56d2 100644
--- a/src/libserver/re_cache.c
+++ b/src/libserver/re_cache.c
@@ -553,7 +553,7 @@ rspamd_re_cache_check_lua_condition (struct rspamd_task *task,
{
lua_State *L = (lua_State *)task->cfg->lua_state;
GError *err = NULL;
- struct rspamd_lua_text *t;
+ struct rspamd_lua_text __attribute__ ((unused)) *t;
gint text_pos;
if (G_LIKELY (lua_cbref == -1)) {
diff --git a/src/rspamd.c b/src/rspamd.c
index 17b2956ab..fce081b1c 100644
--- a/src/rspamd.c
+++ b/src/rspamd.c
@@ -781,7 +781,7 @@ static void
mark_old_workers (gpointer key, gpointer value, gpointer unused)
{
struct rspamd_worker *w = value;
- struct rspamd_main *rspamd_main;
+ struct rspamd_main __attribute__ ((unused)) *rspamd_main;
rspamd_main = w->srv;