From fdf950babffbbd2fe529e05913682632c4cbc298 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Mon, 15 Aug 2016 21:28:25 +0200 Subject: [PATCH] configure: Don't use -Wno-uninitialized for debug builds There is no good reason to suppress useful compiler warnings. Signed-off-by: Stefan Weil --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 4bda6c09..e0e4cf3a 100644 --- a/configure.ac +++ b/configure.ac @@ -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"