#pragma redefine_extname warnings

Martin Sebor sebor@roguewave.com
Thu Oct 3 14:59:00 GMT 2002


We're seeing tons of these warnings from system headers on SunOS,
probably due to the structure of our C++ libc headers. Is there
an easy way to silence them, e.g., using a compiler option or
some other trick, without imposing too much of a burden on the
user?

Thanks
Martin


$ cat t.cpp; gcc --version; gcc t.cpp
extern "C" void foo ();

#pragma redefine_extname foo bar

int main ()
{
}
gcc (GCC) 3.2
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

t.cpp:3: warning: #pragma redefine_extname conflicts with declaration



More information about the Gcc-bugs mailing list