Add "-Werror -Wno-error=" to the default CFLAGS.
authorOmari Stephens <xsdg@google.com>
Sun, 25 Dec 2016 01:47:15 +0000 (01:47 +0000)
committerOmari Stephens <xsdg@google.com>
Wed, 4 Jan 2017 01:29:30 +0000 (01:29 +0000)
configure.in

index 806817c..f9d0e79 100644 (file)
@@ -17,6 +17,9 @@ dnl GNU General Public License for more details.
 AC_PREREQ(2.57)
 AC_INIT([geeqie], m4_esyscmd_s(git rev-parse --quiet --verify --short master), [geeqie-devel@lists.sourceforge.net], [], [http://www.geeqie.org/])
 
+# Add -Werror to the default CFLAGS
+CFLAGS+=" -Werror -Wno-error=deprecated-declarations"
+
 # Check for rightly dirs
 AC_CONFIG_SRCDIR([src/main.c])