From 8044443135ad197826b4a12d4eb75c8f9850ce3e Mon Sep 17 00:00:00 2001 From: Vikram Auradkar Date: Thu, 27 Oct 2022 18:31:39 +0000 Subject: [PATCH] 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 Reviewed-by: Noah Gold Auto-Submit: Vikram Auradkar Commit-Queue: Noah Gold --- gpu_display/src/gpu_display_win/window.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gpu_display/src/gpu_display_win/window.rs b/gpu_display/src/gpu_display_win/window.rs index 41214c6bdd..9e76715673 100644 --- a/gpu_display/src/gpu_display_win/window.rs +++ b/gpu_display/src/gpu_display_win/window.rs @@ -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) { + pub fn update_virtual_display_projection( + &self, + #[allow(unsed)] projection_box: &Box2D, + ) { // Safe because `Window` object won't outlive the HWND. #[cfg(feature = "gfxstream")] unsafe {