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

test: Fix type of User_equal #47

Merged
merged 1 commit into from
Dec 7, 2023
Merged

Conversation

fweimer-rh
Copy link
Contributor

The match function has void * arguments, not User * arguments. This avoids an implicit function pointer type conversion in test_list_find, which is not accepted by all compilers anymore.

Related to:

The match function has void * arguments, not User * arguments.
This avoids an implicit function pointer type conversion in
test_list_find, which is not accepted by all compilers anymore.
@diasbruno
Copy link
Member

Thanks, @fweimer-rh.
Maybe it would be better to let compilers warn about this when they implement these changes, because probably there are other places to update.
What do you think?

@fweimer-rh
Copy link
Contributor Author

@diasbruno The compiler warning has existed and has been enabled by default for at least 26 years. (GCC 2.7.2.3 is just the oldest version for which I have binaries that still run.)

@diasbruno
Copy link
Member

diasbruno commented Dec 1, 2023

Ah. I thought it was for GCC 14 release. 🤦

@stephenmathieson stephenmathieson merged commit 23faa20 into clibs:master Dec 7, 2023
1 check passed
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.

3 participants