From 1c860a4d746dfd5e4b54246b44249e09dc0f17cd Mon Sep 17 00:00:00 2001 From: Cameron Kaiser Date: Wed, 1 Jul 2020 03:03:56 +0000 Subject: [PATCH] Bug 1649653 - fix compilation on non-profiler platforms. r=gerald Differential Revision: https://phabricator.services.mozilla.com/D81803 --- mozglue/tests/TestBaseProfiler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozglue/tests/TestBaseProfiler.cpp b/mozglue/tests/TestBaseProfiler.cpp index 355ffc3b35d3..3b324e430563 100644 --- a/mozglue/tests/TestBaseProfiler.cpp +++ b/mozglue/tests/TestBaseProfiler.cpp @@ -40,6 +40,8 @@ #include #include +#ifdef MOZ_GECKO_PROFILER + MOZ_MAYBE_UNUSED static void SleepMilli(unsigned aMilliseconds) { #if defined(_MSC_VER) || defined(__MINGW32__) Sleep(aMilliseconds); @@ -58,8 +60,6 @@ MOZ_MAYBE_UNUSED static void SleepMilli(unsigned aMilliseconds) { #endif } -#ifdef MOZ_GECKO_PROFILER - using namespace mozilla; void TestPowerOfTwoMask() {