Bug 945077 - Fix -Wunused-variable warning for sHandlersInstalled on OS X. r=luke
authorChris Peterson <cpeterson@mozilla.com>
Sun, 01 Dec 2013 17:43:40 -0800
changeset 158525 0a5136207e2f93fe486062fd34ae746f6cbeec57
parent 158524 e93e370af2eaf54df94f093ddce10614515847ac
child 158526 c9322fc3ef1bc839b134737e5fccda5c34bc8dcb
push id25749
push userryanvm@gmail.com
push dateTue, 03 Dec 2013 21:45:20 +0000
treeherdermozilla-central@85694fd9b17c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersluke
bugs945077
milestone28.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 945077 - Fix -Wunused-variable warning for sHandlersInstalled on OS X. r=luke
js/src/jit/AsmJSSignalHandlers.cpp
--- a/js/src/jit/AsmJSSignalHandlers.cpp
+++ b/js/src/jit/AsmJSSignalHandlers.cpp
@@ -923,17 +923,19 @@ AsmJSFaultHandler(int signum, siginfo_t 
         sPrevHandler.sa_sigaction(signum, info, context);
     else if (sPrevHandler.sa_handler == SIG_DFL || sPrevHandler.sa_handler == SIG_IGN)
         sigaction(signum, &sPrevHandler, nullptr);
     else
         sPrevHandler.sa_handler(signum);
 }
 #endif
 
+#if !defined(XP_MACOSX)
 static bool sHandlersInstalled = false;
+#endif
 
 bool
 js::EnsureAsmJSSignalHandlersInstalled(JSRuntime *rt)
 {
     if (IsSignalHandlingBroken())
         return false;
 
 #if defined(XP_MACOSX)