summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Verkamp <dverkamp@chromium.org>2019-07-08 14:05:47 -0700
committerCommit Bot <commit-bot@chromium.org>2019-07-10 00:53:12 +0000
commit8f94a9ff71ce766c9e91fb2284d40f327148e708 (patch)
tree3020bb589cb8bb7b619c7a4969a8a2a994c0475a
parent9f86c7a22129242555afd244eb681dae167c2356 (diff)
downloadcrosvm-8f94a9ff71ce766c9e91fb2284d40f327148e708.tar
crosvm-8f94a9ff71ce766c9e91fb2284d40f327148e708.tar.gz
crosvm-8f94a9ff71ce766c9e91fb2284d40f327148e708.tar.bz2
crosvm-8f94a9ff71ce766c9e91fb2284d40f327148e708.tar.lz
crosvm-8f94a9ff71ce766c9e91fb2284d40f327148e708.tar.xz
crosvm-8f94a9ff71ce766c9e91fb2284d40f327148e708.tar.zst
crosvm-8f94a9ff71ce766c9e91fb2284d40f327148e708.zip
devices: silence unused code warning in PCI
Now that nothing uses the PCI-to-PCI bridge device type, the compiler
warns that it is never constructed.  Mark the PciHeaderType enum to
allow this, since the enum is public and could be constructed outside
this file.

BUG=None
TEST=./build_test

Change-Id: I6832996c4e00a33cc1ba88d97fede65b226cbfc5
Signed-off-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1691239
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
-rw-r--r--devices/src/pci/pci_configuration.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/devices/src/pci/pci_configuration.rs b/devices/src/pci/pci_configuration.rs
index 4e77f22..e65dd85 100644
--- a/devices/src/pci/pci_configuration.rs
+++ b/devices/src/pci/pci_configuration.rs
@@ -25,6 +25,7 @@ const CAPABILITY_MAX_OFFSET: usize = 192;
 const INTERRUPT_LINE_PIN_REG: usize = 15;
 
 /// Represents the types of PCI headers allowed in the configuration registers.
+#[allow(dead_code)]
 #[derive(Copy, Clone)]
 pub enum PciHeaderType {
     Device,