From 1804b78406bf149f61d69e2e28be6d390236ac66 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Mon, 26 Oct 2020 09:22:25 +0300 Subject: [PATCH] mdbx-debug: alter begin/end debug-includes. Change-Id: I024e992f6864befa1a6cfbf2dd696c19095d3cdf --- src/debug_begin.h | 2 ++ src/debug_end.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/debug_begin.h b/src/debug_begin.h index f3306b5d..b2b2d0bb 100644 --- a/src/debug_begin.h +++ b/src/debug_begin.h @@ -32,3 +32,5 @@ #undef mdbx_assert #define mdbx_assert(env, expr) mdbx_ensure(env, expr) + +#pragma GCC optimize("-O0") diff --git a/src/debug_end.h b/src/debug_end.h index e361119b..3d840e68 100644 --- a/src/debug_end.h +++ b/src/debug_end.h @@ -5,3 +5,5 @@ #pragma pop_macro("mdbx_warning") #pragma pop_macro("mdbx_error") #pragma pop_macro("mdbx_assert") + +#pragma GCC reset_options