Add warning flags for c++ compiler, too

* configure.ac (CXXFLAGS): Add Wall and Wextra.
This commit is contained in:
Andre Heinecke 2016-10-05 16:55:14 +02:00
parent 9d1df99038
commit 4984cc93db

View 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