From 7d7c2e5ca34e64c8c2f1e98e687c1b80f6f66a2b Mon Sep 17 00:00:00 2001 From: Daniel Holbert Date: Mon, 11 May 2015 18:27:34 -0700 Subject: [PATCH] Bug 1163871: Use DebugOnly to suppress opt build warning in gonk nsAppShell.cpp. r=mwu --- widget/gonk/nsAppShell.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/widget/gonk/nsAppShell.cpp b/widget/gonk/nsAppShell.cpp index 8331904b3bb7..200f6e24c8f9 100644 --- a/widget/gonk/nsAppShell.cpp +++ b/widget/gonk/nsAppShell.cpp @@ -49,6 +49,7 @@ #include "nativewindow/FakeSurfaceComposer.h" #endif #include "nsAppShell.h" +#include "mozilla/DebugOnly.h" #include "mozilla/dom/Touch.h" #include "nsGkAtoms.h" #include "nsIObserverService.h" @@ -578,7 +579,7 @@ GeckoInputReaderPolicy::setDisplayInfo() nsRefPtr screen = nsScreenManagerGonk::GetPrimaryScreen(); uint32_t rotation = nsIScreen::ROTATION_0_DEG; - nsresult rv = screen->GetRotation(&rotation); + DebugOnly rv = screen->GetRotation(&rotation); MOZ_ASSERT(NS_SUCCEEDED(rv)); nsIntRect screenBounds = screen->GetNaturalBounds();