From 653218c76a1b2c0da1963f9e09cadcbea56fecc3 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 10 Sep 2018 09:58:28 +0200 Subject: Fix for --enable-debug --disable-assert-always-abort ...found by Change-Id: Ia38fe5cac9fa187535599d313a3422c34458bcd9 Reviewed-on: https://gerrit.libreoffice.org/60242 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- cppu/source/uno/check.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cppu') diff --git a/cppu/source/uno/check.cxx b/cppu/source/uno/check.cxx index e92d7616fa33..3dc0fc5aca0c 100644 --- a/cppu/source/uno/check.cxx +++ b/cppu/source/uno/check.cxx @@ -256,7 +256,7 @@ static_assert(sizeof(second) == sizeof(int), "sizeof(second) != sizeof(int)"); # error unexpected alignment of 8 byte types #endif -#if OSL_DEBUG_LEVEL > 0 +#if OSL_DEBUG_LEVEL > 0 && !defined NDEBUG #define OFFSET_OF( s, m ) reinterpret_cast< size_t >(reinterpret_cast(&reinterpret_cast(16)->m) -16) -- cgit v1.2.3