summaryrefslogtreecommitdiff
path: root/binaryurp
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-12-08 17:31:59 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-12-08 22:02:18 +0100
commit777a3f0a157402b249789e19a6fd5750c44ca971 (patch)
tree35a2218ed59f426e5ff25e2d50e612e3a217bd3e /binaryurp
parentd6e6745683c80b66349eb82581a862fcc5961575 (diff)
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 <sbergman@redhat.com>
Diffstat (limited to 'binaryurp')
-rw-r--r--binaryurp/source/bridge.cxx3
1 files changed, 1 insertions, 2 deletions
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;