-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Does not compile on GCC13 #2907
Comments
Hm on main branch it has been like that since 89cb55e in 2017, 6 years ago, which means any halfway recent release is all like that too. Just update to a recent release like v4.3. |
I was using 4.3.2, and the problem is indeed there (note there is a copy-paste typo in my original post, the function name is lws_tls_server_abort_connection) e.g. here
and a similar conditional definition in |
OK it got a bit confused one way and another. 713 on main happens to be one line below the return type that is involved in your problem and looked like what you're talking about. I took the approach to build it in f38 and got your actual problem. I fixed that and pushed on main and v4.3-stable. |
[ commit 0a09bc3f16e0a965c963d90011b4088237b01942 ] ref: warmcat/libwebsockets#2907 upstream: warmcat/libwebsockets@f9d1f25 We already have this patch, here we align our version with Alpine.
Due to -Werror and new GCC13 enum-int-mismatch warning
e.g.
./lib/tls/openssl/openssl-server.c:713:1: error: conflicting types for ‘lws_tls_server_abort_connection’ due to enum/integer mismatch; have ‘int(struct lws *)’ [-Werror=enum-int-mismatch]
Potential fix: Change the return type of function
lws_ssl_capable_status
fromint
toenum lws_ssl_capable_status
The text was updated successfully, but these errors were encountered: