From 4984cc93db6b55f2420a9abd844c074a5fb4ed0c Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Wed, 5 Oct 2016 16:55:14 +0200 Subject: [PATCH] Add warning flags for c++ compiler, too * configure.ac (CXXFLAGS): Add Wall and Wextra. --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index efa1f19c..114225ad 100644 --- a/configure.ac +++ b/configure.ac @@ -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