This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
RE: #pragma redefine_extname warnings
- From: Martin Sebor <sebor at roguewave dot com>
- To: 'Richard Henderson' <rth at redhat dot com>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 5 Oct 2002 15:39:04 -0600
- Subject: RE: #pragma redefine_extname warnings
Richard Henderson wrote:
> On Thu, Oct 03, 2002 at 03:56:14PM -0600, Martin Sebor wrote:
>
>>extern "C" void foo ();
>>#pragma redefine_extname foo bar
>>
>>t.cpp:3: warning: #pragma redefine_extname conflicts with declaration
>
>
> Actually, that's a C++ front end bug. It indicates that the
> pragma isn't doing what it's supposed to be doing.
Is the pragma documented somewhere? I'm hoping to figure out
how to silence the warnings by means other than #undefining
the __PRAGMA_REDEFINE_EXTNAME macro because that introduces
a bunch of warnigs about unused functions (the statics in
the #else block controlled by the macro).
Thanks
Martin