On Wed, Apr 2, 2025 at 10:53 PM James McCoy <james...@jamessan.com> wrote:

> On Thu, Apr 03, 2025 at 11:10:29AM +0900, Jun Omae wrote:
> >Hi,
> >
> >On 2025/04/03 10:27, James McCoy wrote:
> >> As noted in the [porting docs], GCC-15 uses c23 (well, gnu23) by
> >> default. This causes -Wincompatible-pointer-types errors to occur when
> >> building the Ruby SWIG bindings due to the rb_ensure, rb_iterate, and
> >> rb_rescue2 callbacks.
> >>
> >> [porting docs]: https://gcc.gnu.org/gcc-15/porting_to.html
> >>
> >> This can be worked around by using an older -std.
> >
> >Could you please try a proposed patch for swig-rb in the following post
> [1] ?
> >I created it as a patch for msvc but I think build with new gcc works
> also.
>
> Yes, that patch does work. Thanks!
>
> Cheers,
> --
> James
> GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7  2D23 DFE6 91AE 331B A3DB
>

Hi,

Is there a reason why the patch hasn't been committed? (I only gave it a
cursory look. I haven't studied it in detail.)

Cheers,
Nathan

Reply via email to