Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in make #1672

Open
verajosemanuel opened this issue Jul 30, 2020 · 5 comments
Open

error in make #1672

verajosemanuel opened this issue Jul 30, 2020 · 5 comments

Comments

@verajosemanuel
Copy link

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
Copy link

twiclo commented Sep 17, 2020

Same error for me

@Paulchen232
Copy link

Perhaps that helps:
Cannot compile in Fedora 28 #1537

@ggrrll
Copy link

ggrrll commented Nov 5, 2020

(same here on ubuntu 20.04)

@thisisbintang
Copy link

yes same on ubuntu

@dwhitz
Copy link

dwhitz commented Sep 7, 2021

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants