Bug 1528651 - Followup to fix a warning on release or beta. r=aklotz
☠☠ backed out by f2c0c83ede17 ☠ ☠
authorMasatoshi Kimura <VYV03354@nifty.ne.jp>
Sat, 23 Feb 2019 06:58:07 +0900
changeset 461094 90ec592466c052a420e600f02c9c7b558c25b7fc
parent 461093 211fcf7cb803afac968c00334fada58cb516bd2d
child 461095 f9aea7962fd0fcdef17355a5ce808c99bc32a4f6
push id35618
push usershindli@mozilla.com
push dateTue, 26 Feb 2019 16:54:44 +0000
treeherdermozilla-central@d326a9d5f77b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaklotz
bugs1528651
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1528651 - Followup to fix a warning on release or beta. r=aklotz
ipc/mscom/ActivationContext.cpp
--- a/ipc/mscom/ActivationContext.cpp
+++ b/ipc/mscom/ActivationContext.cpp
@@ -3,16 +3,17 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "mozilla/mscom/ActivationContext.h"
 
 #include "mozilla/Assertions.h"
 #include "mozilla/DebugOnly.h"
+#include "mozilla/Unused.h"
 #include "mozilla/mscom/Utils.h"
 
 namespace mozilla {
 namespace mscom {
 
 ActivationContext::ActivationContext(WORD aResourceId)
     : ActivationContext(reinterpret_cast<HMODULE>(GetContainingModuleHandle()),
                         aResourceId) {}
@@ -194,16 +195,17 @@ ActivationContextRegion& ActivationConte
 
 void ActivationContextRegion::Activate() {
   if (mActCtx.mActCtx == INVALID_HANDLE_VALUE) {
     return;
   }
 
   BOOL activated = ::ActivateActCtx(mActCtx.mActCtx, &mActCookie);
   MOZ_DIAGNOSTIC_ASSERT(activated);
+  Unused << activated;
 }
 
 bool ActivationContextRegion::Deactivate() {
   if (!mActCookie) {
     return true;
   }
 
   BOOL deactivated = ::DeactivateActCtx(0, mActCookie);