Skip to content

Fix compilation with ruby-3.4 and gcc-14#15

Open
mvidner wants to merge 1 commit intoevan:masterfrom
mvidner:patch-1
Open

Fix compilation with ruby-3.4 and gcc-14#15
mvidner wants to merge 1 commit intoevan:masterfrom
mvidner:patch-1

Conversation

@mvidner
Copy link

@mvidner mvidner commented Jan 14, 2025

Depending on the numeric argument, the function pointer passed is expected to have different signatures. Up go gcc-13, it is only a warning (and the called method would have raised anyway), but with gcc-14 it becomes a compilation error.

See also:
https://docs.ruby-lang.org/en/master/extension_rdoc.html#label-Method+and+singleton+method+definition

Depending on the numeric argument, the function pointer passed is expected to have different signatures. Up go gcc-13, it is only a warning (and the called method would have raised anyway), but with gcc-14 it becomes a compilation error.

See also:
https://docs.ruby-lang.org/en/master/extension_rdoc.html#label-Method+and+singleton+method+definition
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