From a479dfe4e646543a82ca6813d6060df80334c222 Mon Sep 17 00:00:00 2001
From: Felix Schindler <felix.schindler@wwu.de>
Date: Mon, 21 Jul 2014 18:34:11 +0200
Subject: [PATCH] Revert "[cmake] remove -O? from debug cxx flags"

This reverts commit b5e571fc9ad2240d510514566c0946b2cce23426.
---
 cmake/modules/DuneStuffMacros.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/modules/DuneStuffMacros.cmake b/cmake/modules/DuneStuffMacros.cmake
index 08311f45f..fba48acb5 100644
--- a/cmake/modules/DuneStuffMacros.cmake
+++ b/cmake/modules/DuneStuffMacros.cmake
@@ -70,7 +70,7 @@ SET( CMAKE_CXX_FLAGS_RELEASE
 SET( CMAKE_CXX_FLAGS "-DDUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS=1 ${CMAKE_CXX_FLAGS}" )
 
 SET( CMAKE_CXX_FLAGS_DEBUG
-  "-DDNDEBUG -g3 -ggdb  -Wunused-variable -Winline -fno-strict-aliasing -fPIC -Wall -Wextra -Wc++0x-compat -Wparentheses -pedantic -Wredundant-decls -Wshadow  -Wundef -Wnon-virtual-dtor -ftemplate-backtrace-limit=0" )
+  "-O0 -DDNDEBUG -g3 -ggdb  -Wunused-variable -Winline -fno-strict-aliasing -fPIC -Wall -Wextra -Wc++0x-compat -Wparentheses -pedantic -Wredundant-decls -Wshadow  -Wundef -Wnon-virtual-dtor -ftemplate-backtrace-limit=0" )
 
 if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
   set( CMAKE_CXX_FLAGS_DEBUG
-- 
GitLab