From 2a55410dd8344682e78e82436055fada3e822a48 Mon Sep 17 00:00:00 2001 From: Daniel Holbert Date: Tue, 29 Jan 2013 09:01:11 -0800 Subject: [PATCH] Bug 835686: Mark debug-only variable as DebugOnly in transportlayer.h. r=ekr --- media/mtransport/transportlayer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {