On 2025/04/03 11:52, James McCoy 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,

Thanks for the feedback! I just pushed the patch to trunk in r1924773 and
nominated the r1924773 in 1.14.x.

-- 
Jun Omae <jun6...@gmail.com> (大前 潤)

Reply via email to