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]

#pragma redefine_extname warnings


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


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