aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDuncan Bellamy <dunk@denkimushi.com>2023-03-14 18:44:21 +0000
committerDuncan Bellamy <dunk@denkimushi.com>2023-03-14 18:44:21 +0000
commitaeac58faaf9826f2b1de0786ccc50ba9d4495cdb (patch)
tree74668cb412ab4f6d3b1fb9cd6f1b138ca991acb8 /test
parent22fdc56ae5ffc6e3439a5200e053147fee44d0ac (diff)
downloadrspamd-aeac58faaf9826f2b1de0786ccc50ba9d4495cdb.tar.gz
rspamd-aeac58faaf9826f2b1de0786ccc50ba9d4495cdb.zip
[Minor] Fix some compiler warnings
Diffstat (limited to 'test')
-rw-r--r--test/rspamd_dkim_test.c2
-rw-r--r--test/rspamd_dns_test.c2
-rw-r--r--test/rspamd_lua_test.c2
-rw-r--r--test/rspamd_mem_pool_test.c2
-rw-r--r--test/rspamd_rrd_test.c2
-rw-r--r--test/rspamd_statfile_test.c2
-rw-r--r--test/rspamd_url_test.c2
7 files changed, 7 insertions, 7 deletions
diff --git a/test/rspamd_dkim_test.c b/test/rspamd_dkim_test.c
index f9018bf68..fde27e4ae 100644
--- a/test/rspamd_dkim_test.c
+++ b/test/rspamd_dkim_test.c
@@ -50,7 +50,7 @@ session_fin (gpointer unused)
}
#endif
void
-rspamd_dkim_test_func ()
+rspamd_dkim_test_func (void)
{
#if 0
rspamd_dkim_context_t *ctx;
diff --git a/test/rspamd_dns_test.c b/test/rspamd_dns_test.c
index 25c28528e..336e58bfb 100644
--- a/test/rspamd_dns_test.c
+++ b/test/rspamd_dns_test.c
@@ -61,7 +61,7 @@ test_dns_cb (struct rdns_reply *reply, gpointer arg)
}
void
-rspamd_dns_test_func ()
+rspamd_dns_test_func (void)
{
struct rspamd_config *cfg;
diff --git a/test/rspamd_lua_test.c b/test/rspamd_lua_test.c
index b014604b5..cc1e96474 100644
--- a/test/rspamd_lua_test.c
+++ b/test/rspamd_lua_test.c
@@ -56,7 +56,7 @@ traceback (lua_State *L)
return 1;
}
-void
+_Noreturn void
rspamd_lua_test_func (void)
{
lua_State *L = (lua_State *)rspamd_main->cfg->lua_state;
diff --git a/test/rspamd_mem_pool_test.c b/test/rspamd_mem_pool_test.c
index b7e0f0811..156b913dc 100644
--- a/test/rspamd_mem_pool_test.c
+++ b/test/rspamd_mem_pool_test.c
@@ -12,7 +12,7 @@
#define TEST2_BUF "test buffertest buffer"
void
-rspamd_mem_pool_test_func ()
+rspamd_mem_pool_test_func (void)
{
rspamd_mempool_t *pool;
rspamd_mempool_stat_t st;
diff --git a/test/rspamd_rrd_test.c b/test/rspamd_rrd_test.c
index 066864222..0fc16edea 100644
--- a/test/rspamd_rrd_test.c
+++ b/test/rspamd_rrd_test.c
@@ -24,7 +24,7 @@ const int rows_cnt = 20;
const int pdp_per_cdp = 60;
void
-rspamd_rrd_test_func ()
+rspamd_rrd_test_func (void)
{
gchar tmpfile[PATH_MAX];
struct rrd_rra_def rra[4];
diff --git a/test/rspamd_statfile_test.c b/test/rspamd_statfile_test.c
index 2ee32ea48..155e4ad68 100644
--- a/test/rspamd_statfile_test.c
+++ b/test/rspamd_statfile_test.c
@@ -7,7 +7,7 @@
#define HASHES_NUM 256
void
-rspamd_statfile_test_func ()
+rspamd_statfile_test_func (void)
{
/*
* XXX: broken, old, need to be rewritten
diff --git a/test/rspamd_url_test.c b/test/rspamd_url_test.c
index aadc18409..092274cb1 100644
--- a/test/rspamd_url_test.c
+++ b/test/rspamd_url_test.c
@@ -55,7 +55,7 @@ const char *test_html = "<some_tag>This is test file with <a href=\"http://micro
/* Function for using in glib test suite */
void
-rspamd_url_test_func ()
+rspamd_url_test_func (void)
{
/* XXX: maybe write test for this */
}