Bug 1520880: Silence an unused variable warning in the stubbed-out ARM64 interceptor. r=aklotz
authorDavid Major <dmajor@mozilla.com>
Thu, 17 Jan 2019 21:59:06 -0500
changeset 454407 e0f21f574d36309f94a832c8985223e4b46a0dd2
parent 454406 fe634797760796afcba95f49d9288c34f3de4865
child 454408 fc81c4dfe73377001915d843a25be594f08979ba
push id35396
push userebalazs@mozilla.com
push dateFri, 18 Jan 2019 09:40:42 +0000
treeherdermozilla-central@3aa256c255f6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaklotz
bugs1520880
milestone66.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 1520880: Silence an unused variable warning in the stubbed-out ARM64 interceptor. r=aklotz
mozglue/misc/interceptor/PatcherDetour.h
--- a/mozglue/misc/interceptor/PatcherDetour.h
+++ b/mozglue/misc/interceptor/PatcherDetour.h
@@ -7,16 +7,17 @@
 #ifndef mozilla_interceptor_PatcherDetour_h
 #define mozilla_interceptor_PatcherDetour_h
 
 #include "mozilla/interceptor/PatcherBase.h"
 #include "mozilla/interceptor/Trampoline.h"
 
 #include "mozilla/ScopeExit.h"
 #include "mozilla/TypedEnumBits.h"
+#include "mozilla/Unused.h"
 
 #define COPY_CODES(NBYTES)                          \
   do {                                              \
     tramp.CopyFrom(origBytes.GetAddress(), NBYTES); \
     origBytes += NBYTES;                            \
   } while (0)
 
 namespace mozilla {
@@ -132,16 +133,17 @@ class WindowsDllDetourPatcher final : pu
         if (!Clear10BytePatch(origBytes)) {
           continue;
         }
       } else {
         MOZ_ASSERT_UNREACHABLE("Unrecognized patch!");
         continue;
       }
 #elif defined(_M_ARM64)
+      Unused << opcode1;
       MOZ_RELEASE_ASSERT(false, "Shouldn't get here");
 #else
 #error "Unknown processor type"
 #endif
     }
 
     this->mVMPolicy.Clear();
   }