From: Ivan Maidanski Date: Thu, 11 Oct 2018 21:33:56 +0000 (+0300) Subject: Pass -Wall -Wextra -Wpedantic to g++ if supported (configure) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dfa08303514788d084584d481c5d3d254b1693cb;p=gc Pass -Wall -Wextra -Wpedantic to g++ if supported (configure) * configure.ac [$GCC=yes] (CXXFLAGS): Prepend -Wall $WEXTRA $WPEDANTIC. --- diff --git a/configure.ac b/configure.ac index f8917597..21abe8fa 100644 --- a/configure.ac +++ b/configure.ac @@ -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)