Add a patch cherry-picked from upstream to fix the build with GCC 12. Upstream commit is d1ca3f53c96dc8a4048b17dc16147a8fac782d4a. I don't know if it fixes any autobuilder errors, I noticed the bug when building locally. Signed-off-by: Paul Cercueil <paul@crapouillou.net> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>