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. [1] https://lists.apache.org/thread/h2687xzt7r9ylgzj2vpz8ox2xxysptq7 -- Jun Omae <jun6...@gmail.com> (大前 潤)