This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: should we use -Werror? (& sample patch to do it)
- To: neil at daikokuya dot demon dot co dot uk
- Subject: Re: RFC: should we use -Werror? (& sample patch to do it)
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Wed, 5 Sep 2001 13:44:15 -0400 (EDT)
- Cc: gcc-patches at gcc dot gnu dot org, gcc at gcc dot gnu dot org
> From: Neil Booth <neil@daikokuya.demon.co.uk>
>
> Kaveh R. Ghazi wrote:-
>
> > I also added a mechanism to disable -Werror on a per-triplet basis or
> > per autoconf test basis. E.g. if the HOST_PTR_PRINTF autoconf test
> > fails, you are guaranteed to get some format specifier warnings. So I
> > automatically disabled -Werror in that case. Also if a platform is
> > hopelessly broken, you can disable -Werror in config.gcc for that
> > triplet.
>
> I would imagine that it would be better to do it the other way; I think
> it is really only realistic to enable it on a per-triplet basis and
> default to off.
> Neil.
Oh no, I disagree. IMHO yours is a formula for never getting it done.
I don't have access to all zillion platforms gcc supports. This needs
to be a team effort if its to be successful, and making it the default
ensures everyone participates. :-)
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions