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.

TEST='cargo build' executes without warnings

Change-Id: I72b6cd24722de801ebfe63bb7419c4e972463082
Signed-off-by: Daniel Verkamp <>
Tested-by: kokoro <>
Reviewed-by: Miriam Zimmerman <>
Reviewed-by: Zach Reizner <>
diff --git a/devices/src/ b/devices/src/
index d1dc959..4a1bbbc 100644
--- a/devices/src/
+++ b/devices/src/
@@ -41,6 +41,7 @@
 // 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.
 #[derive(Debug, Clone, Copy, PartialEq, enumn::N)]
 enum CommandCounter {
     CommandCounter0 = 0x00, // Select counter 0.