Skip to content

Fix GCC 15 compile error from RUBY_METHOD_FUNC - #18

Merged
dixpac merged 2 commits into
WizardComputer:mainfrom
BakiVernes:remove-unnecessary-cast
Sep 3, 2026
Merged

Fix GCC 15 compile error from RUBY_METHOD_FUNC#18
dixpac merged 2 commits into
WizardComputer:mainfrom
BakiVernes:remove-unnecessary-cast

Conversation

@BakiVernes

Copy link
Copy Markdown
Contributor

Pass arity -1 methods to rb_define_singleton_method without the cast so heroku-26 / GCC 15 no longer treats the pointer type as an error. This is the original Ruby C API and stays compatible with GCC 13 and clang.

Pass arity -1 methods to rb_define_singleton_method without the
cast so heroku-26 / GCC 15 no longer treats the pointer type as an
error. This is the original Ruby C API and stays compatible with
GCC 13 and clang.

@dixpac dixpac left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thnx @BakiVernes ! Can you just drop version changes and changelog file from PR just leave C api changes. We are not maintaining changelog atm. then i will deploy with version change, since im doing that bump in deploy script

Leave only the C API change; the version will be bumped in the deploy script.

Co-authored-by: Cursor <cursoragent@cursor.com>
@dixpac
dixpac merged commit 7a972fc into WizardComputer:main Sep 3, 2026
6 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.

2 participants