On 02/20/2013 11:30 AM, Sergey Poznyakoff wrote:
> Hi Paul,
> 
>> Developers are assumed to have up-to-date systems where -Werror is
>> appropriate.
> 
> Frankly, I cannot imagine a situation where treaing a warning as an
> error can be appropriate.  That's why I consider it unfortunate.

If code compiles warning-free, then enabling -Werror prevents
regressions that would add a new warning.  Getting code warning-free,
and deciding what set of warnings to be warning-free on, is a harder
task, but using -Werror DOES make sense for projects that are already
clean for a given set of warnings.

> 
>> I'm surprised you didn't run into this.
> 
> That's quite simple.  Configure enables -Werror only if gcc's version is
> 4.6 or newer.  Mine is not.
> 
> Regards,
> Sergey
> 
> 
> 

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to