Add warning flags for c++ compiler, too
authorAndre Heinecke <aheinecke@intevation.de>
Wed, 5 Oct 2016 14:55:14 +0000 (16:55 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Wed, 5 Oct 2016 14:55:14 +0000 (16:55 +0200)
* configure.ac (CXXFLAGS): Add Wall and Wextra.

configure.ac

index efa1f19..114225a 100644 (file)
@@ -588,6 +588,7 @@ if test "$GCC" = yes; then
           CFLAGS="$CFLAGS -Wno-missing-field-initializers"
           CFLAGS="$CFLAGS -Wno-sign-compare"
         fi
+        CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wno-shadow"
 
         AC_MSG_CHECKING([if gcc supports -Wpointer-arith])
         _gcc_cflags_save=$CFLAGS