Backport patch from Ubuntu, fix ftbfs with GCC 15

Merge request reports

Loading