[Libreoffice-commits] core.git: Branch 'distro/collabora/co-2021' - comphelper/qa

Tor Lillqvist (via logerrit) logerrit at kemper.freedesktop.org
Wed Apr 21 11:39:32 UTC 2021


 comphelper/qa/unit/threadpooltest.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 0152674e929994cf3cfef849310cb6e9b8f529a6
Author:     Tor Lillqvist <tml at iki.fi>
AuthorDate: Wed Apr 21 14:05:04 2021 +0300
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Wed Apr 21 13:38:58 2021 +0200

    Avoid unused private field warning in a NDEBUG compilation
    
    Change-Id: I95bd380ffbd1ce5f5dd5334a901b71993a9d4f01
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114394
    Tested-by: Tor Lillqvist <tml at collabora.com>
    Reviewed-by: Tor Lillqvist <tml at collabora.com>

diff --git a/comphelper/qa/unit/threadpooltest.cxx b/comphelper/qa/unit/threadpooltest.cxx
index 695aca5b421a..435664e4aa77 100644
--- a/comphelper/qa/unit/threadpooltest.cxx
+++ b/comphelper/qa/unit/threadpooltest.cxx
@@ -121,6 +121,8 @@ public:
     }
     virtual void doWork()
     {
+        (void) mThreadId;
+        (void) mCheckEqual;
         assert(mCheckEqual ? osl::Thread::getCurrentIdentifier() == mThreadId
                            : osl::Thread::getCurrentIdentifier() != mThreadId);
     }


More information about the Libreoffice-commits mailing list