From 8bbd8324282e7890de29ede5912d24c6e1c7ce7f Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Mon, 8 Jun 2020 09:08:27 +0200 Subject: [PATCH] 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 Tested-by: Jenkins --- compilerplugins/clang/elidestringvar.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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; }