mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1163871: Use DebugOnly to suppress opt build warning in gonk nsAppShell.cpp. r=mwu
This commit is contained in:
parent
dc0f5bbce5
commit
7fe87cb13a
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user