summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2020-06-08 09:08:27 +0200
committerMiklos Vajna <vmiklos@collabora.com>2020-06-08 10:49:27 +0200
commit8bbd8324282e7890de29ede5912d24c6e1c7ce7f (patch)
tree8d0448184771a168b018664a7a794f7914d10cc2
parent58b7ad7aacfa40b9e4e5271496aeb4c1e3b75191 (diff)
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@redhat.com> Tested-by: Jenkins
-rw-r--r--compilerplugins/clang/elidestringvar.cxx4
1 files changed, 4 insertions, 0 deletions
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;
}