There is now a new fork development at https://github.com/dr-ni/onboard as the old https://launchpad.net/onboard has been stalled for a long time.
Please take a look there and see if Debian shall use that as the new upstream source for Onboard, and fix this GCC15 compatibility bug in this process.

