[Bug c++/68669] [5 regression] -Wunused-variable in anonymous namespace is not correctly supressed by #pragmas

manu at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Dec 3 14:06:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68669

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu.org

--- Comment #5 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Markus Trippelsdorf from comment #3)
> gcc-6 doesn't warn at all (even without the "diagnostic ignored" pragma).

Even with an explicit -Wunused-variable?

Does the warning call in the gcc-5 branch contain %q+D? Does it work correctly
if you change it to %qD?


More information about the Gcc-bugs mailing list