mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 04:04:45 +00:00
kata-ctl: Allow certain constants to go unused
The generic constants for cpu vendor and model may be superseded by architecture specific constants. Allow these to be marked as dead code to ignore warnings on architectures where they are overrided. Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
This commit is contained in:
parent
64c11a66fd
commit
8d4c2cf1b9
@ -12,7 +12,9 @@ mod arch_specific {
|
||||
use std::path::Path;
|
||||
|
||||
const KVM_DEV: &str = "/dev/kvm";
|
||||
#[allow(dead_code)]
|
||||
pub const ARCH_CPU_VENDOR_FIELD: &str = "CPU implementer";
|
||||
#[allow(dead_code)]
|
||||
pub const ARCH_CPU_MODEL_FIELD: &str = "CPU architecture";
|
||||
|
||||
// List of check functions
|
||||
|
@ -23,7 +23,9 @@ const JSON_TYPE: &str = "application/json";
|
||||
|
||||
const USER_AGT: &str = "kata";
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub const GENERIC_CPU_VENDOR_FIELD: &str = "vendor_id";
|
||||
#[allow(dead_code)]
|
||||
pub const GENERIC_CPU_MODEL_FIELD: &str = "model name";
|
||||
|
||||
#[allow(dead_code)]
|
||||
|
Loading…
Reference in New Issue
Block a user