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: Only text the makecontext signature we need #178

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

Conversation

fweimer-rh
Copy link

The test/explicit-bzero.c test uses a start routine without any arguments. There is no need for the multi-argument version.

This avoids a build failure with glibc and future compilers. The GNU C library declares the makecontext callback of type void (*) (void), so no cast is needed. On other systems, the type may be the (currently distinct) type void (*) (), but given that this only affects the ability to execute a test, no further machinery is added here to detect that different type.

Related to:

The test/explicit-bzero.c test uses a start routine without any
arguments.  There is no need for the multi-argument version.

This avoids a build failure with glibc and future compilers.
The GNU C library declares the makecontext callback of
type void (*) (void), so no cast is needed.  On other systems,
the type may be the (currently distinct) type void (*) (),
but given that this only affects the ability to execute a test,
no further machinery is added here to detect that different type.
@neverpanic
Copy link

There's a typo in the commit message ("Only text …" instead of "Only test …"). Maybe whoever ends up merging this can amend the commit and fix that before merging.

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.

None yet

2 participants