mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 02:25:23 +00:00
devices: pit: silence unused code warnings
Some of the variants of the CommandCounter enum are not currently used; add a directive to ignore dead code warnings for these variants, since they are defined by the hardware/spec and may be used in the future. BUG=None TEST='cargo build' executes without warnings Change-Id: I72b6cd24722de801ebfe63bb7419c4e972463082 Signed-off-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1454139 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Miriam Zimmerman <mutexlox@chromium.org> Reviewed-by: Zach Reizner <zachr@chromium.org>
This commit is contained in:
parent
b3fa5c95af
commit
48d1e214de
1 changed files with 1 additions and 0 deletions
|
@ -41,6 +41,7 @@ enum CommandBit {
|
|||
// six bits of the byte. However, if 0xc0 is specified, it indicates that the
|
||||
// command is a "Read-Back", which can latch count and/or status of the
|
||||
// counters selected in the lower bits. See Intel 8254 data sheet for details.
|
||||
#[allow(dead_code)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, enumn::N)]
|
||||
enum CommandCounter {
|
||||
CommandCounter0 = 0x00, // Select counter 0.
|
||||
|
|
Loading…
Reference in a new issue