No -Werror in CFLAGS
Posted Feb 20, 2010 1:30 UTC (Sat) by
giraffedata (subscriber, #1954)
Parent article:
FOSDEM'10: distributions and downstream-upstream collaboration
There should also be no -Werror in CFLAGS, as the project should respect the user's choice
I don't see where -Werror is a user's choice issue.
I learned early in my GNU-using career not to put -Werror in distributed code because it causes lots of needlessly failing builds because of insignificant differences between the user's and the distributor's systems
(like compiler version) and causes virtually no productively failing builds.
I do use -Werror unfailingly on my own builds of things that I distribute, though, and make sure there are no warnings on my own system. Maybe that's the user's choice the statement means. But I see no point whatsoever to choosing to add -Werror to a build of someone else's code -- that's just daring the build to fail.
(
Log in to post comments)