Fix warning suppression for C++20 extension
This adapts a warning suppression so that it works with gcc 12, similar to what was done already in Rec!3230 (merged).
This adapts a warning suppression so that it works with gcc 12, similar to what was done already in Rec!3230 (merged).