Bug 1300380 - Suppress warning for unused private on osx arm build. r=bbouvier
authorTooru Fujisawa <arai_a@mac.com>
Tue, 27 Sep 2016 10:42:13 +0900
changeset 315311 869626f3bac2ce6eec3e4ca657bbd3c056199d12
parent 315310 a8c06ff713115293cdd3166be5ad0481a7957a9e
child 315312 aeab17249ad8c722544490d1afb54bb0630e24ba
push id30747
push usercbook@mozilla.com
push dateTue, 27 Sep 2016 09:22:00 +0000
treeherdermozilla-central@66a77b9bfe5d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbbouvier
bugs1300380
milestone52.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 1300380 - Suppress warning for unused private on osx arm build. r=bbouvier
js/src/asmjs/WasmBaselineCompile.cpp
--- a/js/src/asmjs/WasmBaselineCompile.cpp
+++ b/js/src/asmjs/WasmBaselineCompile.cpp
@@ -2639,16 +2639,17 @@ class BaseCompiler
                 masm.jump(rejoin());
             } else {
 #if defined(JS_CODEGEN_X86) || defined(JS_CODEGEN_X64)
                 if (isFloat)
                     masm.outOfLineWasmTruncateFloat32ToInt32(fsrc, isUnsigned, rejoin());
                 else
                     masm.outOfLineWasmTruncateDoubleToInt32(fsrc, isUnsigned, rejoin());
 #else
+                (void)isUnsigned; // Suppress warning for unused private.
                 MOZ_CRASH("BaseCompiler platform hook: OutOfLineTruncateF32OrF64ToI32 wasm");
 #endif
             }
         }
     };
 
     MOZ_MUST_USE
     bool truncateF32ToI32(RegF32 src, RegI32 dest, bool isUnsigned) {