fix(build): FTBFS with gcc12
Description
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1013036
Steps to reproduce
- Build the debian package on unstable
Technical specifications
Globally, this consists in applying the debian patch. I would just add a condition to disable the specific annoying warnings only in Release and with GCC 12.
Test plan
The package should build, and run.