[Libreoffice-commits] core.git: include/opencl

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Fri Sep 27 09:37:37 UTC 2019


 include/opencl/OpenCLZone.hxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 6bdbe7f5af26be191955dbf8739f4cde40b6782c
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Fri Sep 27 09:11:03 2019 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Fri Sep 27 11:36:12 2019 +0200

    Silence false cid#1454000 "Side effect in assertion"
    
    The side effect is intentional here.
    
    Change-Id: I05d166bb312ea3a97905607c5effccf1e8d8eef7
    Reviewed-on: https://gerrit.libreoffice.org/79668
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/include/opencl/OpenCLZone.hxx b/include/opencl/OpenCLZone.hxx
index d1c59dcd25d4..50d0f81c3191 100644
--- a/include/opencl/OpenCLZone.hxx
+++ b/include/opencl/OpenCLZone.hxx
@@ -32,6 +32,7 @@ public:
 
     ~OpenCLZone()
     {
+        // coverity[assert_side_effect]
         assert(gnEnterCount > 0);
         gnEnterCount = gnEnterCount - 1;
         if (!isInZone())


More information about the Libreoffice-commits mailing list