This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53184] Unnecessary anonymous namespace warnings
- From: "orgads at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 02 May 2012 06:56:28 +0000
- Subject: [Bug c++/53184] Unnecessary anonymous namespace warnings
- Auto-submitted: auto-generated
- References: <bug-53184-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53184
--- Comment #2 from Orgad Shaneh <orgads at gmail dot com> 2012-05-02 06:56:28 UTC ---
Anonymous types shouldn't produce any warnings. They are very commonly used in
headers needed for both C and C++ projects. The warning is meant for types
inside anonymous namespaces, which is not the case here.
Moreover, removing the volatile keyword resolves the warning. Why is that?