This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]