diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-09-10 09:58:28 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-09-10 12:58:24 +0200 |
commit | 653218c76a1b2c0da1963f9e09cadcbea56fecc3 (patch) | |
tree | d28bb028531e700147fb8a0ae0eb86b07a8a40e5 /cppu | |
parent | d53897ca4625fff97b041402de718404bef06f40 (diff) |
Fix for --enable-debug --disable-assert-always-abort
...found by <https://ci.libreoffice.org/job/lo_tb_random_config_linux/1465/>
Change-Id: Ia38fe5cac9fa187535599d313a3422c34458bcd9
Reviewed-on: https://gerrit.libreoffice.org/60242
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'cppu')
-rw-r--r-- | cppu/source/uno/check.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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<char *>(&reinterpret_cast<s *>(16)->m) -16) |