From 777a3f0a157402b249789e19a6fd5750c44ca971 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sat, 8 Dec 2018 17:31:59 +0100 Subject: Use [[maybe_unused]] instead of cast to void Change-Id: I1db02a4eff2d6f16bfb18bda2155d8a26c4a9335 Reviewed-on: https://gerrit.libreoffice.org/64814 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- binaryurp/source/bridge.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'binaryurp') diff --git a/binaryurp/source/bridge.cxx b/binaryurp/source/bridge.cxx index 04f9ae5df2dc..90877f0754c0 100644 --- a/binaryurp/source/bridge.cxx +++ b/binaryurp/source/bridge.cxx @@ -769,9 +769,8 @@ void Bridge::handleCommitChangeRequest( BinaryAny ret; assert(inArguments.size() == 1); css::uno::Sequence< css::bridge::ProtocolProperty > s; - bool ok = (mapBinaryToCppAny(inArguments[0]) >>= s); + [[maybe_unused]] bool ok = (mapBinaryToCppAny(inArguments[0]) >>= s); assert(ok); - (void) ok; // avoid warnings for (sal_Int32 i = 0; i != s.getLength(); ++i) { if (s[i].Name == "CurrentContext") { bCcMode = true; -- cgit