[Libreoffice-commits] core.git: compilerplugins/clang

Miklos Vajna (via logerrit) logerrit at kemper.freedesktop.org
Mon Jun 8 08:50:28 UTC 2020


 compilerplugins/clang/elidestringvar.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 8bbd8324282e7890de29ede5912d24c6e1c7ce7f
Author:     Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Mon Jun 8 09:08:27 2020 +0200
Commit:     Miklos Vajna <vmiklos at collabora.com>
CommitDate: Mon Jun 8 10:49:27 2020 +0200

    compilerplugins: fix -Werror,-Wunused-parameter
    
    When building the plugins with NDEBUG defined.
    
    Change-Id: If84a920d9e042bf8f45d8e3dd5a5cef3b2baba0b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95788
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
    Tested-by: Jenkins

diff --git a/compilerplugins/clang/elidestringvar.cxx b/compilerplugins/clang/elidestringvar.cxx
index 79aa75b2da8f..d0336fd8bbbd 100644
--- a/compilerplugins/clang/elidestringvar.cxx
+++ b/compilerplugins/clang/elidestringvar.cxx
@@ -316,6 +316,7 @@ public:
     {
         assert(!innermostLoop_.empty());
         assert(innermostLoop_.top() == stmt);
+        (void)stmt;
         innermostLoop_.pop();
         return true;
     }
@@ -341,6 +342,7 @@ public:
     {
         assert(!innermostLoop_.empty());
         assert(innermostLoop_.top() == stmt);
+        (void)stmt;
         innermostLoop_.pop();
         return true;
     }
@@ -366,6 +368,7 @@ public:
     {
         assert(!innermostLoop_.empty());
         assert(innermostLoop_.top() == stmt);
+        (void)stmt;
         innermostLoop_.pop();
         return true;
     }
@@ -391,6 +394,7 @@ public:
     {
         assert(!innermostLoop_.empty());
         assert(innermostLoop_.top() == stmt);
+        (void)stmt;
         innermostLoop_.pop();
         return true;
     }


More information about the Libreoffice-commits mailing list