diff --git a/dom/media/GraphDriver.cpp b/dom/media/GraphDriver.cpp index 50a40b479147..d1f5c5d2fac8 100644 --- a/dom/media/GraphDriver.cpp +++ b/dom/media/GraphDriver.cpp @@ -7,6 +7,7 @@ #include "mozilla/dom/AudioContext.h" #include "mozilla/SharedThreadPool.h" #include "mozilla/ClearOnShutdown.h" +#include "mozilla/unused.h" #include "CubebUtils.h" #ifdef MOZ_WEBRTC @@ -227,7 +228,7 @@ void ThreadedDriver::Start() { LIFECYCLE_LOG("Starting thread for a SystemClockDriver %p\n", mGraphImpl); - NS_WARN_IF(mThread); + Unused << NS_WARN_IF(mThread); if (!mThread) { // Ensure we haven't already started it nsCOMPtr event = new MediaStreamGraphInitThreadRunnable(this); // Note: mThread may be null during event->Run() if we pass to NewNamedThread! See AudioInitTask