cppu/source/uno/check.cxx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
New commits: commit 41723365f680421f12869d5af2e895f94a25d9d5 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Tue Aug 4 17:16:59 2020 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Wed Aug 5 08:07:41 2020 +0200 Avoid warnings about unused Char4 Change-Id: Ibcb256552ee03b14a76463be3d9b7ce53213fa7a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100124 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> 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 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits