vysheng / tg

telegram-cli
GNU General Public License v2.0
6.5k stars 1.54k forks source link

error in make #1672

Open verajosemanuel opened 4 years ago

verajosemanuel commented 4 years ago

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

twiclo commented 4 years ago

Same error for me

Paulchen232 commented 4 years ago

Perhaps that helps: Cannot compile in Fedora 28 #1537

ggrrll commented 4 years ago

(same here on ubuntu 20.04)

thisisbintang commented 3 years ago

yes same on ubuntu

dwhitz commented 3 years ago

I've had the same issue and was fixed with this comment of #1694

env CFLAGS="-Wno-cast-function-type" ./configure --disable-openssl