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 dc0f5bbce5
commit 7fe87cb13a

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