diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-08-04 17:16:59 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-08-05 08:07:41 +0200 |
commit | 41723365f680421f12869d5af2e895f94a25d9d5 (patch) | |
tree | b13c71ab89f2903ecf4c13518949ed4226e7e377 /cppu | |
parent | 8605d47f154be97109ab3c76b543b3f30bd2d49a (diff) |
Avoid warnings about unused Char4
Change-Id: Ibcb256552ee03b14a76463be3d9b7ce53213fa7a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100124
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'cppu')
-rw-r--r-- | cppu/source/uno/check.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/cppu/source/uno/check.cxx b/cppu/source/uno/check.cxx index d1ce9bbc0c6f..8e99ff0a35c3 100644 --- a/cppu/source/uno/check.cxx +++ b/cppu/source/uno/check.cxx @@ -133,11 +133,6 @@ struct Char3 : public Char2 { char c3 CPPU_GCC3_ALIGN( Char2 ); }; -struct Char4 -{ - Char3 chars; - char c; -}; enum Enum { v = SAL_MAX_ENUM @@ -258,6 +253,12 @@ static_assert(sizeof(second) == sizeof(int), "sizeof(second) != sizeof(int)"); #if OSL_DEBUG_LEVEL > 0 && !defined NDEBUG +struct Char4 +{ + Char3 chars; + char c; +}; + #define OFFSET_OF( s, m ) reinterpret_cast< size_t >(reinterpret_cast<char *>(&reinterpret_cast<s *>(16)->m) -16) class BinaryCompatible_Impl |