Skip to content

configure fixes for gcc-14#1

Closed
paparodeo wants to merge 1 commit intonaclander:masterfrom
paparodeo:gcc-14-fixes
Closed

configure fixes for gcc-14#1
paparodeo wants to merge 1 commit intonaclander:masterfrom
paparodeo:gcc-14-fixes

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.

@paparodeo paparodeo closed this by deleting the head repository Jan 31, 2025
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