aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-12-29 23:28:46 +0000
committerGitHub <noreply@github.com>2020-12-29 23:28:46 +0000
commit569e39ce8fa74de68b9b764b65886b3c444d06fe (patch)
treecd54a2f123cb283e16bda606e274adfbc313abc6 /src
parent5c222722ab5ebe57374218cdbd97aa678dad26e8 (diff)
parentd7738db6970c4cd838be067293abcdb5abc6a71c (diff)
downloadrspamd-569e39ce8fa74de68b9b764b65886b3c444d06fe.tar.gz
rspamd-569e39ce8fa74de68b9b764b65886b3c444d06fe.zip
Merge pull request #3589 from a16bitsysop/compiler-warnings
[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;