https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103217
--- Comment #10 from Dominique Martinet <npfhrotynz-ptnqh.myvf at noclue dot notk.org> --- Thank you for this work! I can confirm this indeed fixed the warning in my application as well, time to add a fanalyzer build to my CI :)