aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-04-06 16:27:38 +0200
committerChristian Göttsche <cgzones@googlemail.com>2020-04-11 14:06:55 +0200
commit0eee0523918a72f45bf3ffe3cd42c3182ed6f95e (patch)
tree592290d08e02f90e8b606a5bf04611b45e89a797 /src/lua
parent11a64f8b09f9c50b4d7ee0a757ff8bb025b00ba0 (diff)
downloadrspamd-0eee0523918a72f45bf3ffe3cd42c3182ed6f95e.tar.gz
rspamd-0eee0523918a72f45bf3ffe3cd42c3182ed6f95e.zip
[Minor] Remove unused-but-set variables
../src/libserver/url.c: In function ‘rspamd_url_host_set_add’: ../src/libserver/url.c:3808:11: warning: variable ‘k’ set but not used [-Wunused-but-set-variable] 3808 | khiter_t k; | ^ ../src/lua/lua_task.c: In function ‘lua_task_has_urls’: ../src/lua/lua_task.c:2406:11: warning: variable ‘need_emails’ set but not used [-Wunused-but-set-variable] 2406 | gboolean need_emails = FALSE, ret = FALSE; | ^~~~~~~~~~~
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_task.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index 2d6257443..6f1eeaf3f 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -2423,13 +2423,13 @@ lua_task_has_urls (lua_State * L)
{
LUA_TRACE_POINT;
struct rspamd_task *task = lua_check_task (L, 1);
- gboolean need_emails = FALSE, ret = FALSE;
+ gboolean ret = FALSE;
gsize sz = 0;
if (task) {
if (task->message) {
if (lua_gettop (L) >= 2) {
- need_emails = lua_toboolean (L, 2);
+ lua_toboolean (L, 2);
}
if (kh_size (MESSAGE_FIELD (task, urls)) > 0) {