diff --git a/media/mtransport/transportlayer.h b/media/mtransport/transportlayer.h index a85975d90a9..0368d454ca4 100644 --- a/media/mtransport/transportlayer.h +++ b/media/mtransport/transportlayer.h @@ -11,6 +11,7 @@ #include "sigslot.h" +#include "mozilla/DebugOnly.h" #include "mozilla/RefPtr.h" #include "nsCOMPtr.h" #include "nsIEventTarget.h" @@ -65,7 +66,7 @@ class TransportLayer : public sigslot::has_slots<> { if (target_) { nsIThread *thr; - nsresult rv = NS_GetCurrentThread(&thr); + DebugOnly rv = NS_GetCurrentThread(&thr); MOZ_ASSERT(NS_SUCCEEDED(rv)); if (target_ != thr) {