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

configure fixes for gcc-14 #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

paparodeo
Copy link

fixes build with gcc-14. the on_exit check fails due to

test.c: In function ‘main’:
test.c:3:26: error: passing argument 1 of ‘on_exit’ from incompatible pointer type [-Wincompatible-pointer-types]
3 | int main(void) { on_exit(handler, (void )0); return 0; }
| ^~~~~~~
| |
| void (
)(void)
In file included from test.c:1:
/usr/include/stdlib.h:749:28: note: expected ‘void ()(int, void )’ but argument is of type ‘void ()(void)’
749 | extern int on_exit (void (
__func) (int __status, void *__arg), void *__arg)

but given that util.c will fallback to atexit that seems fine.

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

Successfully merging this pull request may close these issues.

1 participant