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() {