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