This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Latest snapshot won't build with --enable-libstdcxx-v3
- To: Theodore dot Papadopoulo at sophia dot inria dot fr (Theodore Papadopoulo)
- Subject: Re: Latest snapshot won't build with --enable-libstdcxx-v3
- From: Joe Buck <jbuck at racerx dot synopsys dot com>
- Date: Wed, 20 Sep 2000 08:30:05 -0700 (PDT)
- Cc: bkoz at redhat dot com (Benjamin Kosnik), scherrey at switchco dot com (Benjamin Scherrey), gcc at gcc dot gnu dot org, libstdc++ at sources dot redhat dot com
> bkoz@redhat.com said:
> >> messages. Why having done that anyway ??? I fill somewhat responsible
> >> because this redirection was not here before I complained about the
> >> use of Werror.
> > it was always there
>
> But what is the rationale behind it ???
I wasn't the person who decided to put in -Werror, but I think it is
a very good idea for libstdc++ to use it.
Warnings produced by the inclusion of system library header files are not
acceptable, because it means that no user of the library can use flags
like -Wall without being distracted by warnings from the system library.
(Old-time Cygnoids are sure to remember how I always used to beat them
up for this - libg++ used to always generate piles of warnings, I'd send
lots of little patches to fix them, and then the next release would
put them all back again).
Putting in -Werror forces the developers to produce warning-free code.
(Now, warnings in files that will never be compiled by library users
aren't a problem, but we currently don't have a way to change the
warning level every time we cross an #include boundary).