Backport an upstream patch fixing a build issue with gcc >= 14.x.
Fixes:
https://autobuild.buildroot.net/results/d144ec967b7db34de56eaf34bb436460b8c924ed/
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit 9782cab084)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>