Skip to content

Fix vendored STP/ABC build error with GCC 15 (closes #786) #787

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

Merged
merged 1 commit into from
May 10, 2025

Conversation

thotypous
Copy link
Contributor

GCC is now more strict with function pointers, therefore the old trick to pass (int (*)(const any_type*, const any_type*)) as (int (*)()) without a cast does not work anymore.

It seems like casting (int (*)()) to (int (*)(const void*, const void*)) inside Vec_PtrSort does not make sense at all anymore, however I tried to make minimal changes since this is vendored code.

GCC is now more strict with function pointers, therefore the old
trick to pass `(int (*)(const any_type*, const any_type*))` as
`(int (*)())` without a cast does not work anymore.
@quark17 quark17 linked an issue May 10, 2025 that may be closed by this pull request
@quark17
Copy link
Collaborator

quark17 commented May 10, 2025

Thank you!

@quark17 quark17 merged commit e9187c1 into B-Lang-org:main May 10, 2025
73 checks 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.

Building vendored STP fails with GCC 15
2 participants