Append -Werror to the right flags
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 4 Jun 2016 17:20:26 +0000 (19:20 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 4 Jun 2016 17:20:26 +0000 (19:20 +0200)
configure.ac

index 5ab5f0d..7aff89a 100644 (file)
@@ -6199,7 +6199,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])