https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107492
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:cf35818a390e7cb4b1a4fa70c243ede59d6cbbac commit r13-3607-gcf35818a390e7cb4b1a4fa70c243ede59d6cbbac Author: Jonathan Wakely <jwak...@redhat.com> Date: Tue Nov 1 11:17:35 2022 +0000 libstdc++: Ignore -Wignored-qualifiers warning in <variant> The warning is wrong here, the qualifier serves a purpose and is not ignored (c.f. PR c++/107492). libstdc++-v3/ChangeLog: * include/std/variant (__variant::_Multi_array::__untag_result): Use pragma to suppress warning.