mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 10:33:33 +00:00
Bug 1163871: Use DebugOnly to suppress opt build warning in gonk nsAppShell.cpp. r=mwu
This commit is contained in:
parent
0941fe8f8c
commit
7d7c2e5ca3
@ -49,6 +49,7 @@
|
|||||||
#include "nativewindow/FakeSurfaceComposer.h"
|
#include "nativewindow/FakeSurfaceComposer.h"
|
||||||
#endif
|
#endif
|
||||||
#include "nsAppShell.h"
|
#include "nsAppShell.h"
|
||||||
|
#include "mozilla/DebugOnly.h"
|
||||||
#include "mozilla/dom/Touch.h"
|
#include "mozilla/dom/Touch.h"
|
||||||
#include "nsGkAtoms.h"
|
#include "nsGkAtoms.h"
|
||||||
#include "nsIObserverService.h"
|
#include "nsIObserverService.h"
|
||||||
@ -578,7 +579,7 @@ GeckoInputReaderPolicy::setDisplayInfo()
|
|||||||
nsRefPtr<nsScreenGonk> screen = nsScreenManagerGonk::GetPrimaryScreen();
|
nsRefPtr<nsScreenGonk> screen = nsScreenManagerGonk::GetPrimaryScreen();
|
||||||
|
|
||||||
uint32_t rotation = nsIScreen::ROTATION_0_DEG;
|
uint32_t rotation = nsIScreen::ROTATION_0_DEG;
|
||||||
nsresult rv = screen->GetRotation(&rotation);
|
DebugOnly<nsresult> rv = screen->GetRotation(&rotation);
|
||||||
MOZ_ASSERT(NS_SUCCEEDED(rv));
|
MOZ_ASSERT(NS_SUCCEEDED(rv));
|
||||||
nsIntRect screenBounds = screen->GetNaturalBounds();
|
nsIntRect screenBounds = screen->GetNaturalBounds();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user