build: Don’t unconditionally enable -Werror for non-release builds
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Fri, 1 Nov 2013 10:34:43 +0000 (10:34 +0000)
committerOlivier Crête <olivier.crete@collabora.com>
Tue, 7 Jan 2014 23:58:53 +0000 (18:58 -0500)
commitc2ccb1634542f7d9c2a87aa46af027e6df386dd8
tree51031c596aa852c2479a29b7db2db32189faafa8
parent7137fe0388852c465accff59172325c9c097f517
build: Don’t unconditionally enable -Werror for non-release builds

Do not unconditionally enable -Werror, since that breaks the build for
people who have stricter compilation warnings enabled.

Instead, add an --enable-compile-warnings configure flag which enables
-Werror when passed as --enable-compile-warnings=error. This mimics the
flag in gnome-common, for consistency. But we enable errors by default
on non-released versions.
configure.ac