Bug 1163871: Use DebugOnly to suppress opt build warning in gonk nsAppShell.cpp. r=mwu

This commit is contained in:
Daniel Holbert 2015-05-11 18:27:34 -07:00
parent 0941fe8f8c
commit 7d7c2e5ca3

View File

@ -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<nsScreenGonk> screen = nsScreenManagerGonk::GetPrimaryScreen();
uint32_t rotation = nsIScreen::ROTATION_0_DEG;
nsresult rv = screen->GetRotation(&rotation);
DebugOnly<nsresult> rv = screen->GetRotation(&rotation);
MOZ_ASSERT(NS_SUCCEEDED(rv));
nsIntRect screenBounds = screen->GetNaturalBounds();