Merge pull request #1740 from rubenk/correct-am_cflags
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 4 Jun 2016 18:16:56 +0000 (20:16 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 4 Jun 2016 18:16:56 +0000 (20:16 +0200)
Append -Werror to the right flags

configure.ac

index eb5d17b..4816c75 100644 (file)
@@ -6201,7 +6201,7 @@ AM_CXXFLAGS="-Wall"
 if test "x$enable_werror" != "xno"
 then
         AM_CFLAGS="$AM_CFLAGS -Werror"
-        AM_CXXFLAGS="$AM_CFLAGS -Werror"
+        AM_CXXFLAGS="$AM_CXXFLAGS -Werror"
 fi
 AC_SUBST([AM_CFLAGS])
 AC_SUBST([AM_CXXFLAGS])