Gitweb:
https://git.exim.org/exim.git/commitdiff/74c3d81c6581448c78c13dd33e2283fad8d04380
Commit: 74c3d81c6581448c78c13dd33e2283fad8d04380
Parent: c0187be12d11f99314a658b1db1263cfff6dec05
Author: Jeremy Harris <jgh146exb@???>
AuthorDate: Sat Sep 14 10:14:42 2024 +0100
Committer: Jeremy Harris <jgh146exb@???>
CommitDate: Sat Sep 14 10:14:42 2024 +0100
Compiler quietening
---
src/src/miscmods/arc.c | 12 +++++------
src/src/miscmods/dkim.c | 44 +++++++++++++++++++--------------------
src/src/miscmods/dkim_transport.c | 2 ++
src/src/miscmods/dmarc.c | 6 +++---
src/src/miscmods/exim_filter.c | 4 ++--
src/src/miscmods/pam.c | 2 +-
src/src/miscmods/pdkim/pdkim.c | 12 ++++++-----
src/src/miscmods/perl.c | 4 ++--
src/src/miscmods/radius.c | 2 +-
src/src/miscmods/sieve_filter.c | 4 ++--
src/src/miscmods/spf.c | 10 ++++-----
11 files changed, 53 insertions(+), 49 deletions(-)
diff --git a/src/src/miscmods/arc.c b/src/src/miscmods/arc.c
index b35c17277..dbf7f58f4 100644
--- a/src/src/miscmods/arc.c
+++ b/src/src/miscmods/arc.c
@@ -2132,13 +2132,13 @@ return arc_state;
/* Module API */
static void * arc_functions[] = {
- [ARC_VERIFY] = acl_verify_arc,
- [ARC_HEADER_FEED] = arc_header_feed,
- [ARC_STATE_IS_PASS] = arc_is_pass,
- [ARC_SIGN_INIT] = arc_sign_init,
- [ARC_SIGN] = arc_sign,
+ [ARC_VERIFY] = (void *) acl_verify_arc,
+ [ARC_HEADER_FEED] = (void *) arc_header_feed,
+ [ARC_STATE_IS_PASS] = (void *) arc_is_pass,
+ [ARC_SIGN_INIT] = (void *) arc_sign_init,
+ [ARC_SIGN] = (void *) arc_sign,
# ifdef SUPPORT_DMARC
- [ARC_ARCSET_INFO] = arc_arcset_string,
+ [ARC_ARCSET_INFO] = (void *) arc_arcset_string,
# endif
};
diff --git a/src/src/miscmods/dkim.c b/src/src/miscmods/dkim.c
index 40339d100..a2a8faba8 100644
--- a/src/src/miscmods/dkim.c
+++ b/src/src/miscmods/dkim.c
@@ -126,6 +126,7 @@ return NULL; /*XXX better error detail? logging? */
+#ifdef EXPERIMENTAL_ARC
/* Module API: Lookup a DNS DKIM record and parse the pubkey.
Arguments:
@@ -161,7 +162,6 @@ return p->srvtype;
-#ifdef EXPERIMENTAL_ARC
/* Return:
OK verify succesful
FAIL verify did not pass
@@ -1302,34 +1302,34 @@ static optionlist dkim_options[] = {
};
static void * dkim_functions[] = {
- [DKIM_VERIFY_FEED] = dkim_exim_verify_feed,
- [DKIM_VERIFY_PAUSE] = dkim_exim_verify_pause,
- [DKIM_VERIFY_FINISH] = dkim_exim_verify_finish,
- [DKIM_ACL_ENTRY] = dkim_exim_acl_entry,
- [DKIM_VERIFY_LOG_ALL] = dkim_exim_verify_log_all,
- [DKIM_VDOM_FIRSTPASS] = dkim_exim_vdom_firstpass,
+ [DKIM_VERIFY_FEED] = (void *) dkim_exim_verify_feed,
+ [DKIM_VERIFY_PAUSE] = (void *) dkim_exim_verify_pause,
+ [DKIM_VERIFY_FINISH] = (void *) dkim_exim_verify_finish,
+ [DKIM_ACL_ENTRY] = (void *) dkim_exim_acl_entry,
+ [DKIM_VERIFY_LOG_ALL] = (void *) dkim_exim_verify_log_all,
+ [DKIM_VDOM_FIRSTPASS] = (void *) dkim_exim_vdom_firstpass,
- [DKIM_SIGNER_ISINLIST] = dkim_exim_signer_isinlist,
- [DKIM_STATUS_LISTMATCH] = dkim_exim_status_listmatch,
+ [DKIM_SIGNER_ISINLIST] = (void *) dkim_exim_signer_isinlist,
+ [DKIM_STATUS_LISTMATCH] = (void *) dkim_exim_status_listmatch,
- [DKIM_SETVAR] = dkim_exim_setvar,
- [DKIM_EXPAND_QUERY] = dkim_exim_expand_query,
+ [DKIM_SETVAR] = (void *) dkim_exim_setvar,
+ [DKIM_EXPAND_QUERY] = (void *) dkim_exim_expand_query,
- [DKIM_TRANSPORT_INIT] = dkim_exim_sign_init,
- [DKIM_TRANSPORT_WRITE] = dkim_transport_write_message,
+ [DKIM_TRANSPORT_INIT] = (void *) dkim_exim_sign_init,
+ [DKIM_TRANSPORT_WRITE] = (void *) dkim_transport_write_message,
#ifdef SUPPORT_DMARC
- [DKIM_SIGS_LIST] = dkim_sigs_list,
+ [DKIM_SIGS_LIST] = (void *) dkim_sigs_list,
#endif
#ifdef EXPERIMENTAL_ARC
- [DKIM_HASHNAME_TO_TYPE] = dkim_hashname_to_type,
- [DKIM_HASHTYPE_TO_METHOD] = dkim_hashtype_to_method,
- [DKIM_HASHNAME_TO_METHOD] = dkim_hashname_to_method,
- [DKIM_SET_BODYHASH] = dkim_set_bodyhash,
- [DKIM_DNS_PUBKEY] = dkim_exim_parse_dns_pubkey,
- [DKIM_SIG_VERIFY] = dkim_exim_sig_verify,
- [DKIM_HEADER_RELAX] = pdkim_relax_header_n,
- [DKIM_SIGN_DATA] = dkim_sign_blob,
+ [DKIM_HASHNAME_TO_TYPE] = (void *) dkim_hashname_to_type,
+ [DKIM_HASHTYPE_TO_METHOD] = (void *) dkim_hashtype_to_method,
+ [DKIM_HASHNAME_TO_METHOD] = (void *) dkim_hashname_to_method,
+ [DKIM_SET_BODYHASH] = (void *) dkim_set_bodyhash,
+ [DKIM_DNS_PUBKEY] = (void *) dkim_exim_parse_dns_pubkey,
+ [DKIM_SIG_VERIFY] = (void *) dkim_exim_sig_verify,
+ [DKIM_HEADER_RELAX] = (void *) pdkim_relax_header_n,
+ [DKIM_SIGN_DATA] = (void *) dkim_sign_blob,
#endif
};
diff --git a/src/src/miscmods/dkim_transport.c b/src/src/miscmods/dkim_transport.c
index f367df1ad..de14d0466 100644
--- a/src/src/miscmods/dkim_transport.c
+++ b/src/src/miscmods/dkim_transport.c
@@ -110,6 +110,7 @@ return TRUE;
+#ifdef EXPERIMENTAL_ARC
/* Prepend ARC-signing headers to given set of headers
Arguments:
@@ -134,6 +135,7 @@ if (mi)
*errstr_p = US"failed to find arc module";
return NULL;
}
+#endif
diff --git a/src/src/miscmods/dmarc.c b/src/src/miscmods/dmarc.c
index 161bfeece..9741a3a45 100644
--- a/src/src/miscmods/dmarc.c
+++ b/src/src/miscmods/dmarc.c
@@ -786,9 +786,9 @@ static optionlist dmarc_options[] = {
};
static void * dmarc_functions[] = {
- [DMARC_PROCESS] = dmarc_process,
- [DMARC_EXPAND_QUERY] = dmarc_exim_expand_query,
- [DMARC_STORE_DATA] = dmarc_store_data,
+ [DMARC_PROCESS] = (void *) dmarc_process,
+ [DMARC_EXPAND_QUERY] = (void *) dmarc_exim_expand_query,
+ [DMARC_STORE_DATA] = (void *) dmarc_store_data,
};
/* dmarc_forensic_sender is provided for visibility of the the option setting
diff --git a/src/src/miscmods/exim_filter.c b/src/src/miscmods/exim_filter.c
index a4c2f0898..77ea214dd 100644
--- a/src/src/miscmods/exim_filter.c
+++ b/src/src/miscmods/exim_filter.c
@@ -2644,8 +2644,8 @@ return yield;
/* Module API */
static void * exim_functions[] = {
- [EXIM_INTERPRET] = filter_interpret,
- [EXIM_FILTER_PERSONAL] = filter_personal,
+ [EXIM_INTERPRET] = (void *) filter_interpret,
+ [EXIM_FILTER_PERSONAL] = (void *) filter_personal,
};
misc_module_info exim_filter_module_info =
diff --git a/src/src/miscmods/pam.c b/src/src/miscmods/pam.c
index 5fb811a34..1c94cc29f 100644
--- a/src/src/miscmods/pam.c
+++ b/src/src/miscmods/pam.c
@@ -206,7 +206,7 @@ return ERROR;
/* Module API */
static void * pam_functions[] = {
- [RADIUS_AUTH_CALL] = auth_call_pam,
+ [PAM_AUTH_CALL] = (void *) auth_call_pam,
};
misc_module_info pam_module_info =
diff --git a/src/src/miscmods/pdkim/pdkim.c b/src/src/miscmods/pdkim/pdkim.c
index 7c2f34217..c60e0686b 100644
--- a/src/src/miscmods/pdkim/pdkim.c
+++ b/src/src/miscmods/pdkim/pdkim.c
@@ -936,18 +936,20 @@ static int
pdkim_header_complete(pdkim_ctx * ctx)
{
gstring * g = ctx->cur_header;
-const misc_module_info * mi;
-typedef const uschar * (*fn_t)(gstring *, BOOL);
if (gstring_length(g) > 1)
gstring_trim_trailing(g, '\r');
(void) string_from_gstring(g);
#ifdef EXPERIMENTAL_ARC
-/* Feed the header line also to ARC processing */
-if ((mi = misc_mod_findonly(US"arc")))
- (((fn_t *) mi->functions)[ARC_HEADER_FEED])
+ /* Feed the header line also to ARC processing */
+ {
+ const misc_module_info * mi;
+ typedef const uschar * (*fn_t)(gstring *, BOOL);
+ if ((mi = misc_mod_findonly(US"arc")))
+ (((fn_t *) mi->functions)[ARC_HEADER_FEED])
(g, !(ctx->flags & PDKIM_MODE_SIGN));
+ }
#endif
if (++ctx->num_headers > PDKIM_MAX_HEADERS) goto BAIL;
diff --git a/src/src/miscmods/perl.c b/src/src/miscmods/perl.c
index 901494743..aef634967 100644
--- a/src/src/miscmods/perl.c
+++ b/src/src/miscmods/perl.c
@@ -208,8 +208,8 @@ call_perl_cat(gstring * yield, uschar **errstrp, uschar *name, uschar **arg)
/* Module API */
static void * perl_functions[] = {
- [PERL_STARTUP] = init_perl,
- [PERL_CAT] = call_perl_cat,
+ [PERL_STARTUP] = (void *) init_perl,
+ [PERL_CAT] = (void *) call_perl_cat,
};
misc_module_info perl_module_info =
diff --git a/src/src/miscmods/radius.c b/src/src/miscmods/radius.c
index 6a8d41cac..b52c06ec1 100644
--- a/src/src/miscmods/radius.c
+++ b/src/src/miscmods/radius.c
@@ -225,7 +225,7 @@ return result;
/* Module API */
static void * rad_functions[] = {
- [RADIUS_AUTH_CALL] = auth_call_radius,
+ [RADIUS_AUTH_CALL] = (void *) auth_call_radius,
};
misc_module_info radius_module_info =
diff --git a/src/src/miscmods/sieve_filter.c b/src/src/miscmods/sieve_filter.c
index f3935caf3..70563db8c 100644
--- a/src/src/miscmods/sieve_filter.c
+++ b/src/src/miscmods/sieve_filter.c
@@ -3627,8 +3627,8 @@ for (const uschar ** pp = exim_sieve_extension_list; *pp; ++pp)
/* Module API */
static void * sieve_functions[] = {
- [SIEVE_INTERPRET] = sieve_interpret,
- [SIEVE_EXTENSIONS] = sieve_extensions,
+ [SIEVE_INTERPRET] = (void *) sieve_interpret,
+ [SIEVE_EXTENSIONS] = (void *) sieve_extensions,
};
misc_module_info sieve_filter_module_info =
diff --git a/src/src/miscmods/spf.c b/src/src/miscmods/spf.c
index 17c1a3602..b27e87353 100644
--- a/src/src/miscmods/spf.c
+++ b/src/src/miscmods/spf.c
@@ -565,12 +565,12 @@ static optionlist spf_options[] = {
};
static void * spf_functions[] = {
- [SPF_PROCESS] = spf_process,
- [SPF_GET_RESPONSE] = spf_get_response, /* ugly; for dmarc */
+ [SPF_PROCESS] = (void *) spf_process,
+ [SPF_GET_RESPONSE] = (void *) spf_get_response, /* ugly; for dmarc */
- [SPF_OPEN] = spf_lookup_open,
- [SPF_CLOSE] = spf_lookup_close,
- [SPF_FIND] = spf_lookup_find,
+ [SPF_OPEN] = (void *) spf_lookup_open,
+ [SPF_CLOSE] = (void *) spf_lookup_close,
+ [SPF_FIND] = (void *) spf_lookup_find,
};
static var_entry spf_variables[] = {
--
## subscription configuration (requires account):
##
https://lists.exim.org/mailman3/postorius/lists/exim-cvs.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-cvs-unsubscribe@???
## Exim details at
http://www.exim.org/
## Please use the Wiki with this list -
http://wiki.exim.org/