Revert "configure: use -Og in debug mode"

This reverts commit d6e9bb8423.

Some variables are optimized out with -Og.  -O0 doesn't have this problem.

Change-Id: Ief09d2d3659260aa8151dbfe8951dc11777bb79b
This commit is contained in:
Olivier Dion
2021-05-28 12:23:27 -04:00
parent 999590a38c
commit 3ff1548de6

View File

@ -34,9 +34,9 @@ AC_ARG_ENABLE([debug],
AS_IF([test "x$enable_debug" = "xyes"],
[DAEMONCFLAGS+=" -g -fno-omit-frame-pointer -Wall -Wextra -Wnon-virtual-dtor \
-Wno-unknown-pragmas -Wformat=2 -Og"
-Wno-unknown-pragmas -Wformat=2 -O0"
DAEMONCXXFLAGS+=" -g -fno-omit-frame-pointer -Wall -Wextra -Wnon-virtual-dtor \
-Wno-unknown-pragmas -Wformat=2 -Og"],
-Wno-unknown-pragmas -Wformat=2 -O0"],
[DAEMONCFLAGS+=" -DNDEBUG=1 -O3"
DAEMONCXXFLAGS+=" -DNDEBUG=1 -O3"])