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

Do not use function pointers of unspecified arguments #57

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

Conversation

musicinmybrain
Copy link

This is necessary in order to build with C23, which is the default standard in GCC 15.

In C23, int foo() is no longer a function taking unspecified arguments, but a function taking no arguments, like int foo(void).

Furthermore, treating a pointer to a function of unspecified arguments as compatible with a pointer to a function with declared arguments was probably always dubious, although it worked in practice.

This is necessary in order to build with C23, which is the default
standard in GCC 15.

In C23, `int foo()` is no longer a function taking unspecified
arguments, but a function taking no arguments, like `int foo(void)`.

Furthermore, treating a pointer to a function of unspecified arguments
as compatible with a pointer to a function with declared arguments was
probably always dubious, although it worked in practice.
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