This is the mail archive of the gcc@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]

Re: RFC: should we use -Werror? (& sample patch to do it)


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.


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