-
Notifications
You must be signed in to change notification settings - Fork 293
Open
Description
Updated to Fedora 42 and having a hard time compiling this
./nchan-1.3.6/src/subscribers/longpoll.c: In function ‘longpoll_subscriber_create’:
./nchan-1.3.6/src/subscribers/longpoll.c:59:31: error: assignment to ‘subscriber_callback_pt’ {aka ‘void (*)(struct subscriber_s *, void *)’} from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types]
59 | fsub->data.enqueue_callback = empty_handler;
| ^
./nchan-1.3.6/src/subscribers/longpoll.c:20:13: note: ‘empty_handler’ declared here
20 | static void empty_handler() { }
| ^~~~~~~~~~~~~
In file included from ./nchan-1.3.6/src/nchan_module.h:31,
from ./nchan-1.3.6/src/subscribers/longpoll.c:1:
./nchan-1.3.6/src/nchan_types.h:452:16: note: ‘subscriber_callback_pt’ declared here
452 | typedef void (*subscriber_callback_pt)(subscriber_t *, void *);
| ^~~~~~~~~~~~~~~~~~~~~~
./nchan-1.3.6/src/subscribers/longpoll.c:62:31: error: assignment to ‘subscriber_callback_pt’ {aka ‘void (*)(struct subscriber_s *, void *)’} from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types]
62 | fsub->data.dequeue_callback = empty_handler;
| ^
./nchan-1.3.6/src/subscribers/longpoll.c:20:13: note: ‘empty_handler’ declared here
20 | static void empty_handler() { }
| ^~~~~~~~~~~~~
./nchan-1.3.6/src/nchan_types.h:452:16: note: ‘subscriber_callback_pt’ declared here
452 | typedef void (*subscriber_callback_pt)(subscriber_t *, void *);
| ^~~~~~~~~~~~~~~~~~~~~~
./nchan-1.3.6/src/subscribers/longpoll.c: In function ‘longpoll_respond_message’:
./nchan-1.3.6/src/subscribers/longpoll.c:299:29: error: assignment to ‘ngx_http_cleanup_pt’ {aka ‘void (*)(void *)’} from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types]
299 | fsub->data.cln->handler = empty_handler;
| ^
./nchan-1.3.6/src/subscribers/longpoll.c:20:13: note: ‘empty_handler’ declared here
20 | static void empty_handler() { }
| ^~~~~~~~~~~~~
In file included from src/http/ngx_http.h:34,
from ./nchan-1.3.6/src/nchan_module.h:18:
src/http/ngx_http_request.h:337:16: note: ‘ngx_http_cleanup_pt’ declared here
337 | typedef void (*ngx_http_cleanup_pt)(void *data);
| ^~~~~~~~~~~~~~~~~~~
./nchan-1.3.6/src/subscribers/longpoll.c: In function ‘longpoll_multipart_respond’:
./nchan-1.3.6/src/subscribers/longpoll.c:347:27: error: assignment to ‘ngx_http_cleanup_pt’ {aka ‘void (*)(void *)’} from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types]
347 | fsub->data.cln->handler = empty_handler;
| ^
./nchan-1.3.6/src/subscribers/longpoll.c:20:13: note: ‘empty_handler’ declared here
20 | static void empty_handler() { }
| ^~~~~~~~~~~~~
src/http/ngx_http_request.h:337:16: note: ‘ngx_http_cleanup_pt’ declared here
337 | typedef void (*ngx_http_cleanup_pt)(void *data);
| ^~~~~~~~~~~~~~~~~~~
./nchan-1.3.6/src/subscribers/longpoll.c: In function ‘longpoll_respond_status’:
./nchan-1.3.6/src/subscribers/longpoll.c:460:27: error: assignment to ‘ngx_http_cleanup_pt’ {aka ‘void (*)(void *)’} from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types]
460 | fsub->data.cln->handler = empty_handler;
| ^
./nchan-1.3.6/src/subscribers/longpoll.c:20:13: note: ‘empty_handler’ declared here
20 | static void empty_handler() { }
| ^~~~~~~~~~~~~
src/http/ngx_http_request.h:337:16: note: ‘ngx_http_cleanup_pt’ declared here
337 | typedef void (*ngx_http_cleanup_pt)(void *data);
| ^~~~~~~~~~~~~~~~~~~
make[1]: *** [objs/Makefile:1935: objs/addon/subscribers/longpoll.o] Error 1
make[1]: *** Waiting for unfinished jobs....
./nchan-1.3.6/src/subscribers/websocket.c: In function ‘websocket_subscriber_create’:
./nchan-1.3.6/src/subscribers/websocket.c:748:26: error: assignment to ‘subscriber_callback_pt’ {aka ‘void (*)(struct subscriber_s *, void *)’} from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types]
748 | fsub->enqueue_callback = empty_handler;
| ^
./nchan-1.3.6/src/subscribers/websocket.c:216:13: note: ‘empty_handler’ declared here
216 | static void empty_handler() { }
| ^~~~~~~~~~~~~
In file included from ./nchan-1.3.6/src/nchan_module.h:31,
from ./nchan-1.3.6/src/subscribers/websocket.c:1:
./nchan-1.3.6/src/nchan_types.h:452:16: note: ‘subscriber_callback_pt’ declared here
452 | typedef void (*subscriber_callback_pt)(subscriber_t *, void *);
| ^~~~~~~~~~~~~~~~~~~~~~
./nchan-1.3.6/src/subscribers/websocket.c:751:26: error: assignment to ‘subscriber_callback_pt’ {aka ‘void (*)(struct subscriber_s *, void *)’} from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types]
751 | fsub->dequeue_callback = empty_handler;
| ^
./nchan-1.3.6/src/subscribers/websocket.c:216:13: note: ‘empty_handler’ declared here
216 | static void empty_handler() { }
| ^~~~~~~~~~~~~
./nchan-1.3.6/src/nchan_types.h:452:16: note: ‘subscriber_callback_pt’ declared here
452 | typedef void (*subscriber_callback_pt)(subscriber_t *, void *);
| ^~~~~~~~~~~~~~~~~~~~~~
Metadata
Metadata
Assignees
Labels
No labels