From 74773a7b17d52e33ec1630675136c464ee3d3dc9 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Wed, 17 Jan 2024 19:58:11 +0100 Subject: [PATCH] sasl-mechlist.c: Cast function pointer to the expected type This fixes a build failure with GCC 14, Related to: --- sasl-mechlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sasl-mechlist.c b/sasl-mechlist.c index 680e983..222898c 100644 --- a/sasl-mechlist.c +++ b/sasl-mechlist.c @@ -34,7 +34,7 @@ main(int argc, char **argv) int ret, i; const char *mechs, **globals; sasl_callback_t callbacks[] = { - {SASL_CB_GETOPT, my_getopt, NULL}, + {SASL_CB_GETOPT, (int (*)(void)) my_getopt, NULL}, {SASL_CB_LIST_END}, }; sasl_conn_t *connection;