commit 8f90164: [Minor] Remove unused variables
Linus Nordberg
linus at nordberg.se
Fri Sep 8 12:35:03 UTC 2023
Author: Linus Nordberg
Date: 2023-09-08 12:05:12 +0200
URL: https://github.com/rspamd/rspamd/commit/8f901645d93f392df3dc60969d026b2eeeab9888 (refs/pull/4591/head)
[Minor] Remove unused variables
---
src/libutil/mem_pool.c | 4 +---
src/rspamadm/pw.c | 2 +-
test/rspamd_mem_pool_test.c | 2 --
test/rspamd_radix_test.c | 1 -
4 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/src/libutil/mem_pool.c b/src/libutil/mem_pool.c
index 02b5ed3c4..39bc79f25 100644
--- a/src/libutil/mem_pool.c
+++ b/src/libutil/mem_pool.c
@@ -284,8 +284,6 @@ rspamd_mempool_new_(gsize size, const gchar *tag, gint flags, const gchar *loc)
{
rspamd_mempool_t *new_pool;
gpointer map;
- const gchar hexdigits[] = "0123456789abcdef";
- unsigned i;
/* Allocate statistic structure if it is not allocated before */
if (mem_pool_stat == NULL) {
@@ -1301,4 +1299,4 @@ gsize rspamd_mempool_get_used_size(rspamd_mempool_t *pool)
gsize rspamd_mempool_get_wasted_size(rspamd_mempool_t *pool)
{
return pool->priv->wasted_memory;
-}
\ No newline at end of file
+}
diff --git a/src/rspamadm/pw.c b/src/rspamadm/pw.c
index db1df7344..9fe9cd754 100644
--- a/src/rspamadm/pw.c
+++ b/src/rspamadm/pw.c
@@ -187,7 +187,7 @@ rspamadm_pw_check(void)
guchar *salt_decoded, *key_decoded, *local_key;
gsize salt_len, key_len, size;
gchar test_password[8192], encrypted_password[8192];
- gsize plen, term = 0, i;
+ gsize plen, i;
gint id;
gboolean ret = FALSE;
diff --git a/test/rspamd_mem_pool_test.c b/test/rspamd_mem_pool_test.c
index fb3cf31e0..626cc078b 100644
--- a/test/rspamd_mem_pool_test.c
+++ b/test/rspamd_mem_pool_test.c
@@ -16,8 +16,6 @@ void rspamd_mem_pool_test_func(void)
rspamd_mempool_t *pool;
rspamd_mempool_stat_t st;
char *tmp, *tmp2, *tmp3;
- pid_t pid;
- int ret;
pool = rspamd_mempool_new(sizeof(TEST_BUF), NULL, 0);
tmp = rspamd_mempool_alloc(pool, sizeof(TEST_BUF));
diff --git a/test/rspamd_radix_test.c b/test/rspamd_radix_test.c
index 426eb1f54..8d31dc169 100644
--- a/test/rspamd_radix_test.c
+++ b/test/rspamd_radix_test.c
@@ -206,7 +206,6 @@ void rspamd_radix_test_func(void)
{
struct btrie *btrie;
rspamd_mempool_t *pool;
- radix_compressed_t *comp_tree = radix_create_compressed(NULL);
struct {
guint32 addr;
guint32 mask;
More information about the Commits
mailing list