From 2449a1f4dd4d79efbaabba6c684fa0aa7c0d0c17 Mon Sep 17 00:00:00 2001 From: Daniel Holbert Date: Mon, 6 Oct 2014 09:25:12 -0700 Subject: [PATCH] Bug 1078027: Move BrowserTabsRemoteAutostart()'s local-var 'testPref' inside the #ifdef where its only usage lives, to fix unused-variable warning. r=jimm --- toolkit/xre/nsAppRunner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolkit/xre/nsAppRunner.cpp b/toolkit/xre/nsAppRunner.cpp index 5a4c94bd56b..70eaf47ebf9 100644 --- a/toolkit/xre/nsAppRunner.cpp +++ b/toolkit/xre/nsAppRunner.cpp @@ -4577,10 +4577,10 @@ mozilla::BrowserTabsRemoteAutostart() gBrowserTabsRemoteAutostartInitialized = true; bool optInPref = Preferences::GetBool("browser.tabs.remote.autostart", false); bool trialPref = Preferences::GetBool("browser.tabs.remote.autostart.1", false); - bool testPref = Preferences::GetBool("layers.offmainthreadcomposition.testing.enabled", false); #if !defined(NIGHTLY_BUILD) // When running tests with 'layers.offmainthreadcomposition.testing.enabled' and autostart // set to true, return enabled. These tests must be allowed to run remotely. + bool testPref = Preferences::GetBool("layers.offmainthreadcomposition.testing.enabled", false); if (testPref && optInPref) { gBrowserTabsRemoteAutostart = true; }