mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-05 10:10:41 +00:00
crosvm: Fix compile warnings
BUG=none TEST=cargo check --all-targets --all-features Change-Id: I266350f9cf7ce6c89fd25106a1a3e43361672dbb Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2145536 Tested-by: Keiichi Watanabe <keiichiw@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Keiichi Watanabe <keiichiw@chromium.org> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Zach Reizner <zachr@chromium.org>
This commit is contained in:
parent
297ae77887
commit
6eb0ca94ac
4 changed files with 4 additions and 3 deletions
|
@ -6,7 +6,7 @@
|
|||
// Then modified manually
|
||||
|
||||
/* Added below line manually */
|
||||
#![allow(dead_code)]
|
||||
#![allow(dead_code, non_camel_case_types)]
|
||||
|
||||
/* Added below line manually */
|
||||
use std::os::raw::{c_char, c_int, c_uint, c_void};
|
||||
|
|
|
@ -13,7 +13,7 @@ use sys_util::EventFd;
|
|||
|
||||
type SurfaceId = NonZeroU32;
|
||||
|
||||
#[allow(unused_variables)]
|
||||
#[allow(dead_code)]
|
||||
struct Buffer {
|
||||
width: u32,
|
||||
height: u32,
|
||||
|
|
|
@ -20,7 +20,7 @@ use std::num::NonZeroU32;
|
|||
use std::os::raw::c_ulong;
|
||||
use std::os::unix::io::{AsRawFd, RawFd};
|
||||
use std::ptr::{null, null_mut, NonNull};
|
||||
use std::rc::{Rc, Weak};
|
||||
use std::rc::Rc;
|
||||
use std::time::Duration;
|
||||
|
||||
use libc::{shmat, shmctl, shmdt, shmget, IPC_CREAT, IPC_PRIVATE, IPC_RMID};
|
||||
|
|
|
@ -8,6 +8,7 @@ use data::{MapEntry, KEYCODE_MAP};
|
|||
use std::collections::HashMap;
|
||||
|
||||
/// Specifies which type of scancode to convert *from* in the KeycodeTranslator.
|
||||
#[allow(dead_code)]
|
||||
pub enum KeycodeTypes {
|
||||
XkbScancode,
|
||||
WindowsScancode,
|
||||
|
|
Loading…
Reference in a new issue