tg icon indicating copy to clipboard operation
tg copied to clipboard

make error

Open romych82 opened this issue 3 years ago • 1 comments

tgl/queries.c: In function ‘_tgl_do_send_photo’: tgl/queries.c:2091:10: error: cast between incompatible function types from ‘void (*)(struct tgl_state *, void *, int, struct tgl_message )’ to ‘void ()(struct tgl_state *, void , int)’ [-Werror=cast-function-type] 2091 | ((void ()(struct tgl_state *, void , int))callback) (TLS, callback_extra, 0); | ^ tgl/queries.c:2108:10: error: cast between incompatible function types from ‘void ()(struct tgl_state *, void *, int, struct tgl_message )’ to ‘void ()(struct tgl_state *, void , int)’ [-Werror=cast-function-type] 2108 | ((void ()(struct tgl_state *, void , int))callback) (TLS, callback_extra, 0); | ^ tgl/queries.c:2141:10: error: cast between incompatible function types from ‘void ()(struct tgl_state *, void *, int, struct tgl_message )’ to ‘void ()(struct tgl_state *, void , int)’ [-Werror=cast-function-type] 2141 | ((void ()(struct tgl_state *, void *, int))callback) (TLS, callback_extra, 0); | ^ cc1: all warnings being treated as errors make: *** [Makefile.tgl:20: objs/queries.o] Error 1

romych82 avatar May 13 '22 19:05 romych82

You can a little bit search. Perhaps this: #1633

Paulchen232 avatar May 14 '22 00:05 Paulchen232