mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-09 20:04:20 +00:00
virtio: video: allow dead code in the utils module
The utils module contains code commonly used by backends, but not necessarily used by all. This can lead to compiler warnings about unused code depending on which backends are compiled in. Silence them by allowing dead code in that module only. BUG=None TEST=`cargo build --features "video-decoder,video-encoder,libvda"` does not emit any warning. Change-Id: Ia5cb28f84a2367f450c69eb505347cc4a0d95ba1 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3960215 Reviewed-by: Dennis Kempin <denniskempin@google.com> Auto-Submit: Alexandre Courbot <acourbot@chromium.org> Commit-Queue: Dennis Kempin <denniskempin@google.com>
This commit is contained in:
parent
474d2eea17
commit
5286194102
1 changed files with 3 additions and 0 deletions
|
@ -2,6 +2,9 @@
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// Not all video backends make use of the tools in this module.
|
||||
#![allow(dead_code)]
|
||||
|
||||
use std::collections::btree_map::Entry;
|
||||
use std::collections::BTreeMap;
|
||||
use std::collections::VecDeque;
|
||||
|
|
Loading…
Reference in a new issue