This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Why am I seeing these warnings from system header files?
- From: "Kevin Regan" <k dot regan at f5 dot com>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Mon, 30 Jul 2007 14:00:43 -0700
- Subject: Why am I seeing these warnings from system header files?
I'm seeing the following:
g++ -c -W -Wall -Werror -Wpointer-arith -Wreturn-type -Wswitch -Wunused
-g -DUNIX -fPIC -I/home/scherf/v9/fullsail/f5app/f5em/include -isystem
/home/scherf/v9/fullsail/devfs/usr/include -isystem
/home/scherf/v9/fullsail/devfs/usr/include/iControlClient -isystem
/home/scherf/v9/fullsail/devfs/usr/include/mysql -isystem
/home/scherf/v9/fullsail/devfs/usr/include/mysql++ -isystem
/home/scherf/v9/fullsail/devfs/usr/include/easysoap ExampleFunctions.cpp
-o ExampleFunctions.o
cc1plus: warnings being treated as errors
/usr/include/c++/3.2.3/i386-redhat-linux/bits/codecvt_specializations.h:
84: warning: unused
parameter `int __ibom'
/usr/include/c++/3.2.3/i386-redhat-linux/bits/codecvt_specializations.h:
84: warning: unused
parameter `int __ebom'
...
Why are these warnings being generated when I'm not using
"-Wsystem-headers"?
Here is my system information:
% uname -a
Linux zim.pdsea.f5net.com 2.4.21-47.ELsmp #1 SMP Tue Aug 1 09:06:57 EDT
2006 i686 athlon i386 GNU/Linux
% g++ --version
g++ (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-56)
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.
I am *not* seeing this behavior on another of my machines (this machine
has 3.2.3-52 rather than 3.2.3-56):
% uname -a
Linux regan95.pdsea.f5net.com 2.4.21-32.ELsmp #1 SMP Wed May 18 17:49:28
EDT 2005 i686 i686 i386 GNU/Linux
% $ g++ --version
g++ (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-52)
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.
Thanks for any help,
Kevin Regan