Fix build with GCC 12 which is soon to become GCC_DEFAULT version. PR: 266191 Reported by: exp-run (antoine)