[Bug c++/51440] C++ compiler produces warning for an unnamed struct member: TYPE has a field FIELD whose type uses the anonymous namespace

gcc at martinien dot de gcc-bugzilla@gcc.gnu.org
Tue Mar 26 20:06:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51440

Martin Richtarsky <gcc at martinien dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gcc at martinien dot de

--- Comment #3 from Martin Richtarsky <gcc at martinien dot de> 2013-03-26 20:06:11 UTC ---
+1 for the ability to disable this warning.

I am compiling a big project with gcc4.8 and this warning is triggered by a
header file. Many of the cpp files that include the header are compiled with
-Werror. Since I have no way to selectively disable this warning with pragmas
in the header the only workaround is removing -Werror from all the cpp files
that include the header.

If there are any other solutions please let me know.



More information about the Gcc-bugs mailing list