mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-10 12:09:31 +00:00
rutabaga_gfx: silence some compiler warnings
BUG=None TEST=cargo build Change-Id: Ife9616a258a685535483432991b3a06207d955b2 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3880623 Tested-by: Ryan Neph <ryanneph@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> Auto-Submit: Ryan Neph <ryanneph@google.com>
This commit is contained in:
parent
ee4836850f
commit
cc7c43183a
1 changed files with 2 additions and 3 deletions
|
@ -18,7 +18,6 @@ use std::sync::Arc;
|
|||
use base::AsRawDescriptor;
|
||||
use base::Error as BaseError;
|
||||
use base::FromRawDescriptor;
|
||||
use base::RawDescriptor;
|
||||
|
||||
use crate::rutabaga_gralloc::formats::DrmFormat;
|
||||
use crate::rutabaga_gralloc::gralloc::Gralloc;
|
||||
|
@ -29,7 +28,7 @@ use crate::rutabaga_gralloc::rendernode;
|
|||
use crate::rutabaga_utils::*;
|
||||
|
||||
struct MinigbmDeviceInner {
|
||||
fd: File,
|
||||
_fd: File,
|
||||
gbm: *mut gbm_device,
|
||||
}
|
||||
|
||||
|
@ -75,7 +74,7 @@ impl MinigbmDevice {
|
|||
let device_name: &str = c_str.to_str()?;
|
||||
|
||||
Ok(Box::new(MinigbmDevice {
|
||||
minigbm_device: Arc::new(MinigbmDeviceInner { fd, gbm }),
|
||||
minigbm_device: Arc::new(MinigbmDeviceInner { _fd: fd, gbm }),
|
||||
last_buffer: None,
|
||||
device_name,
|
||||
}))
|
||||
|
|
Loading…
Reference in a new issue