Add warning flags for c++ compiler, too
* configure.ac (CXXFLAGS): Add Wall and Wextra.
This commit is contained in:
parent
9d1df99038
commit
4984cc93db
@ -588,6 +588,7 @@ if test "$GCC" = yes; then
|
|||||||
CFLAGS="$CFLAGS -Wno-missing-field-initializers"
|
CFLAGS="$CFLAGS -Wno-missing-field-initializers"
|
||||||
CFLAGS="$CFLAGS -Wno-sign-compare"
|
CFLAGS="$CFLAGS -Wno-sign-compare"
|
||||||
fi
|
fi
|
||||||
|
CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wno-shadow"
|
||||||
|
|
||||||
AC_MSG_CHECKING([if gcc supports -Wpointer-arith])
|
AC_MSG_CHECKING([if gcc supports -Wpointer-arith])
|
||||||
_gcc_cflags_save=$CFLAGS
|
_gcc_cflags_save=$CFLAGS
|
||||||
|
Loading…
Reference in New Issue
Block a user