Skip to content

Conversation

@flavorjones
Copy link
Contributor

GCC 15 was raising this error:

iconv.c:779:42: error: passing argument 3 of ‘rb_ensure’ from incompatible pointer type [-Wincompatible-pointer-type]
  779 |         return rb_ensure(rb_yield, self, (VALUE(*)())iconv_finish, self);
      |                                          ^~~~~~~~~~~~~~~~~~~~~~~~
      |                                          |
      |                                          VALUE (*)(void) {aka long unsigned int (*)(void)}
In file included from /mise/installs/ruby/3.4.2/include/ruby-3.4.0/ruby/ruby.h:41:
/mise/installs/ruby/3.4.2/include/ruby-3.4.0/ruby/internal/iterator.h:425:62: note: expected ‘VALUE (*)(VALUE)’ {akalong unsigned int (*)(long unsigned int)’} but argument is of type ‘VALUE (*)(void)’ {aka ‘long unsigned int (*)(void’}
  425 | VALUE rb_ensure(VALUE (*b_proc)(VALUE), VALUE data1, VALUE (*e_proc)(VALUE), VALUE data2);
      |                                                      ~~~~~~~~^~~~~~~~~~~~~~

GCC 15 was raising this error:

```
iconv.c:779:42: error: passing argument 3 of ‘rb_ensure’ from incompatible pointer type [-Wincompatible-pointer-type]
  779 |         return rb_ensure(rb_yield, self, (VALUE(*)())iconv_finish, self);
      |                                          ^~~~~~~~~~~~~~~~~~~~~~~~
      |                                          |
      |                                          VALUE (*)(void) {aka long unsigned int (*)(void)}
In file included from /mise/installs/ruby/3.4.2/include/ruby-3.4.0/ruby/ruby.h:41:
/mise/installs/ruby/3.4.2/include/ruby-3.4.0/ruby/internal/iterator.h:425:62: note: expected ‘VALUE (*)(VALUE)’ {akalong unsigned int (*)(long unsigned int)’} but argument is of type ‘VALUE (*)(void)’ {aka ‘long unsigned int (*)(void’}
  425 | VALUE rb_ensure(VALUE (*b_proc)(VALUE), VALUE data1, VALUE (*e_proc)(VALUE), VALUE data2);
      |                                                      ~~~~~~~~^~~~~~~~~~~~~~
```
@hsbt hsbt merged commit 212c4b9 into ruby:master Sep 24, 2025
37 checks passed
@hsbt
Copy link
Member

hsbt commented Sep 24, 2025

👍

@davue
Copy link

davue commented Dec 5, 2025

Thx for fixing this! Is there an estimate when this is going to be released? @hsbt

@hsbt
Copy link
Member

hsbt commented Dec 5, 2025

@davue
Copy link

davue commented Dec 5, 2025

That was quick. Thank you very much! :)

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