This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/39159] unhelpful attribute warning on matching declaration after definition
- From: "wipedout at yandex dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 05 Feb 2016 07:39:58 +0000
- Subject: [Bug c++/39159] unhelpful attribute warning on matching declaration after definition
- Auto-submitted: auto-generated
- References: <bug-39159-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39159
wipedout at yandex dot ru changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |wipedout at yandex dot ru
--- Comment #4 from wipedout at yandex dot ru ---
Tons of warnings like this arise when porting code from Visual C++ to gcc.
Visual C++ supports "interface" keyword and you can have "interface Interface;"
many times - both above and before the actual definition. "interface" has to be
mapped to exactly "struct __attribute__ ((visibility ("default")))" and so the
code which originally compiled no problem causes hundreds of warnings with gcc.