On Tue, May 29, 2012 at 11:36:03AM -0500, Jonathan Nieder wrote: > Using -Werror in contexts other than private development where you > control the toolchain and can easily suppress known warnings is not > very wise.
I think it's a wise policy to tolerate no warnings to the extent possible. -Werror helps policing that, but of course it should be turned off if there's a truly spurious warning that cannot be easily worked around. Usually, warnings can be worked around with minimal disruption to the program. However, I was not able to find a simple way for warn_unused_result: even explicit casting to void gets the warning. (The way I worked around this in the project that triggered this report, was to eliminate all uses to mblen. Wasn't terribly difficult, and eliminated a nonreentrancy so I suppose it's not all bad. But not the point of the warning.) -- Antti-Juhani Kaijanaho, Jyväskylä, Finland http://antti-juhani.kaijanaho.fi/newblog/ http://www.flickr.com/photos/antti-juhani/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org