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

Compilation fails with gcc 14+ #4753

Open
BtbN opened this issue Nov 3, 2024 · 0 comments
Open

Compilation fails with gcc 14+ #4753

BtbN opened this issue Nov 3, 2024 · 0 comments

Comments

@BtbN
Copy link
Contributor

BtbN commented Nov 3, 2024

15.95 /50-libzmq/src/ip.cpp: In function 'int zmq::make_fdpair(fd_t*, fd_t*)':
15.95 /50-libzmq/src/ip.cpp:678:1: error: jump to label 'try_tcpip'
15.95   678 | try_tcpip:
15.95       | ^~~~~~~~~
15.95 /50-libzmq/src/ip.cpp:568:14: note:   from here
15.95   568 |         goto try_tcpip;
15.95       |              ^~~~~~~~~
15.95 /50-libzmq/src/ip.cpp:572:18: note:   crosses initialization of 'const SOCKET listener'
15.95   572 |     const SOCKET listener = open_socket (AF_UNIX, SOCK_STREAM, 0);
15.95       |      

This is an issue since #4734 was merged.
The variable needs to be zero-initialized before the goto at the very least.

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

1 participant