aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile2
-rw-r--r--crm114-exec.c3
-rw-r--r--dspam-exec.c3
-rw-r--r--mailtrain.c5
-rw-r--r--signature-log.c7
5 files changed, 12 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 66eaab3..74bc4d9 100644
--- a/Makefile
+++ b/Makefile
@@ -53,7 +53,7 @@ objs += signature.o
endif
# main make rules
-CFLAGS += -fPIC -shared -Wall -DPLUGINNAME=$(PLUGINNAME)
+CFLAGS += -fPIC -shared -Wall -Wextra -DPLUGINNAME=$(PLUGINNAME)
CC ?= "gcc"
objs += antispam-plugin.o $(BACKEND).o
diff --git a/crm114-exec.c b/crm114-exec.c
index 5c69a81..295c52a 100644
--- a/crm114-exec.c
+++ b/crm114-exec.c
@@ -128,7 +128,8 @@ struct antispam_transaction_context {
struct siglist *siglist;
};
-struct antispam_transaction_context *backend_start(struct mailbox *box)
+struct antispam_transaction_context *
+backend_start(struct mailbox *box __attr_unused__)
{
struct antispam_transaction_context *ast;
diff --git a/dspam-exec.c b/dspam-exec.c
index 5c08fc2..0b0a9cb 100644
--- a/dspam-exec.c
+++ b/dspam-exec.c
@@ -155,7 +155,8 @@ struct antispam_transaction_context {
struct siglist *siglist;
};
-struct antispam_transaction_context *backend_start(struct mailbox *box)
+struct antispam_transaction_context *
+backend_start(struct mailbox *box __attr_unused__)
{
struct antispam_transaction_context *ast;
diff --git a/mailtrain.c b/mailtrain.c
index 66f7087..d734e20 100644
--- a/mailtrain.c
+++ b/mailtrain.c
@@ -79,7 +79,8 @@ struct antispam_transaction_context {
int tmplen;
};
-struct antispam_transaction_context *backend_start(struct mailbox *box)
+struct antispam_transaction_context *
+backend_start(struct mailbox *box __attr_unused__)
{
struct antispam_transaction_context *ast;
char *tmp;
@@ -270,7 +271,7 @@ int backend_handle_mail(struct mailbox_transaction_context *t,
return ret;
}
-void backend_init(pool_t pool)
+void backend_init(pool_t pool __attr_unused__)
{
const char *tmp;
diff --git a/signature-log.c b/signature-log.c
index ab2e46d..2cd9aa7 100644
--- a/signature-log.c
+++ b/signature-log.c
@@ -44,7 +44,8 @@ struct antispam_transaction_context {
struct dict_transaction_context *dict_ctx;
};
-struct antispam_transaction_context *backend_start(struct mailbox *box)
+struct antispam_transaction_context *
+backend_start(struct mailbox *box __attr_unused__)
{
struct antispam_transaction_context *ast;
@@ -68,7 +69,7 @@ void backend_rollback(struct antispam_transaction_context *ast)
i_free(ast);
}
-int backend_commit(struct mailbox_transaction_context *ctx,
+int backend_commit(struct mailbox_transaction_context *ctx __attr_unused__,
struct antispam_transaction_context *ast)
{
int ret = 0;
@@ -129,7 +130,7 @@ int backend_handle_mail(struct mailbox_transaction_context *t,
return ret;
}
-void backend_init(pool_t pool)
+void backend_init(pool_t pool __attr_unused__)
{
const char *tmp;