Pass -Wall -Wextra -Wpedantic to g++ if supported (configure)
authorIvan Maidanski <ivmai@mail.ru>
Thu, 11 Oct 2018 21:33:56 +0000 (00:33 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 11 Oct 2018 21:33:56 +0000 (00:33 +0300)
* configure.ac [$GCC=yes] (CXXFLAGS): Prepend -Wall $WEXTRA $WPEDANTIC.

configure.ac

index f891759..21abe8f 100644 (file)
@@ -402,6 +402,7 @@ if test "$GCC" = yes; then
   AS_IF([test "$ac_cv_cc_pedantic" = yes],
         [WPEDANTIC="-Wpedantic -Wno-long-long"])
   CFLAGS="-Wall $WEXTRA $WPEDANTIC $CFLAGS"
+  CXXFLAGS="-Wall $WEXTRA $WPEDANTIC $CXXFLAGS"
 fi
 
 AC_MSG_CHECKING(for xlc)