Merge pull request #404 from stweil/warnings

configure: Don't use -Wno-uninitialized for debug builds
This commit is contained in:
zdenop 2016-08-30 15:44:45 +02:00 committed by GitHub
commit 2660647007

View File

@ -294,8 +294,8 @@ AC_ARG_ENABLE([debug],
[debug="no"])
AC_MSG_RESULT([$debug])
if test x"$debug" = x"yes"; then
AM_CXXFLAGS="$AM_CXXFLAGS -g -Wall -Wno-uninitialized -O0 -DDEBUG"
AM_CPPFLAGS="$AM_CPPFLAGS -g -Wall -Wno-uninitialized -O0 -DDEBUG"
AM_CXXFLAGS="$AM_CXXFLAGS -g -Wall -O0 -DDEBUG"
AM_CPPFLAGS="$AM_CPPFLAGS -g -Wall -O0 -DDEBUG"
else
AM_CXXFLAGS="$AM_CXXFLAGS -O2 -DNDEBUG"
AM_CPPFLAGS="$AM_CPPFLAGS -O2 -DNDEBUG"