Christian G?ttsche:
> -g -O2 -I. -I../../include -DLINUX4 -c xsasl_cyrus_server.c
> xsasl_cyrus_server.c:185:26: warning: initialization of ?int
> (*)(void)? from incompatible pointer type ?int (*)(void *, char **)?
> [-Wincompatible-pointer-types]
> 185 | {SASL_CB_GETCONFPATH,&xsasl_getconfpath, 0},
> | ^
I have:
182 static sasl_callback_t callbacks[] = {
183 {SASL_CB_LOG, (XSASL_CYRUS_CB) &xsasl_cyrus_log,
NO_CALLBACK_CONTEXT},
184 {SASL_CB_LIST_END, 0, 0}
185 };
Your code is different.
> xsasl_cyrus_client.c: In function ?xsasl_cyrus_client_init?:
> xsasl_cyrus_client.c:233:23: warning: initialization of ?int
> (*)(void)? from incompatible pointer type ?int (*)(void *, char **)?
> [-Wincompatible-pointer-types]
> 233 | {SASL_CB_GETCONFPATH,&xsasl_getconfpath, 0},
> | ^
I have:
230 static sasl_callback_t callbacks[] = {
231 {SASL_CB_LOG, (XSASL_CYRUS_CB) &xsasl_cyrus_log, 0},
232 {SASL_CB_LIST_END, 0, 0}
233 };
Please complain to the maintainer of your distro.
Wietse