gpu_display: Fix warnings

BUG=none
TEST=presubmit

Change-Id: I6f9d5ac3161f02b20d4b042e39bbcafc7dab8e43
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3988325
Reviewed-by: Pujun Lun <lunpujun@google.com>
Reviewed-by: Noah Gold <nkgold@google.com>
Auto-Submit: Vikram Auradkar <auradkar@google.com>
Commit-Queue: Noah Gold <nkgold@google.com>
This commit is contained in:
Vikram Auradkar 2022-10-27 18:31:39 +00:00 committed by crosvm LUCI
parent 94dc349835
commit 8044443135

View file

@ -13,7 +13,6 @@ use std::ptr::null_mut;
use anyhow::bail;
use anyhow::Context;
use anyhow::Result;
use base::debug;
use base::error;
use base::info;
use base::warn;
@ -304,7 +303,10 @@ impl Window {
}
/// Updates the rectangle in the window's client area to which gfxstream renders.
pub fn update_virtual_display_projection(&self, projection_box: &Box2D<i32, HostWindowSpace>) {
pub fn update_virtual_display_projection(
&self,
#[allow(unsed)] projection_box: &Box2D<i32, HostWindowSpace>,
) {
// Safe because `Window` object won't outlive the HWND.
#[cfg(feature = "gfxstream")]
unsafe {