From f8d5b4b3416eca5aa678202fd976e21f84c0fdad Mon Sep 17 00:00:00 2001 From: Harald Freudenberger Date: Thu, 11 Jul 2024 10:05:59 +0200 Subject: [PATCH] rust/pvapconfig: add dead_code pragmas to suppress warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The ap.rs code is already prepared for possible support for CCA mode APQNs for the Secure Execution environment. However, this patch marks these fields and structs with pragma allow(dead_code) to prevent warnings during cargo build of pvapconfig. Signed-off-by: Harald Freudenberger Signed-off-by: Jan Höppner --- rust/pvapconfig/src/ap.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rust/pvapconfig/src/ap.rs b/rust/pvapconfig/src/ap.rs index f3d8f493..a593c54e 100644 --- a/rust/pvapconfig/src/ap.rs +++ b/rust/pvapconfig/src/ap.rs @@ -119,6 +119,7 @@ pub struct ApqnInfoEp11 { } #[derive(Debug, Clone)] +#[allow(dead_code)] pub struct ApqnInfoCca { pub serialnr: String, pub mkvp_aes: String, // may be an empty string if no MK set @@ -129,6 +130,7 @@ pub struct ApqnInfoCca { pub enum ApqnInfo { Accel(ApqnInfoAccel), Ep11(ApqnInfoEp11), + #[allow(dead_code)] Cca(ApqnInfoCca), } @@ -262,6 +264,7 @@ impl ApqnInfo { #[derive(Debug, Clone)] pub struct Apqn { + #[allow(dead_code)] pub name: String, pub card: u32, pub domain: u32,