https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106850
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- > It's standard. Not really as the warning is correct qualifiers are really ignored on return types as required by the standard.
pinskia at gcc dot gnu.org via Gcc-bugs Tue, 06 Sep 2022 06:57:03 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106850
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- > It's standard. Not really as the warning is correct qualifiers are really ignored on return types as required by the standard.