This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
#pragma redefine_extname warnings
- From: Martin Sebor <sebor at roguewave dot com>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 03 Oct 2002 15:56:14 -0600
- Subject: #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