Skip to content

Commit

Permalink
td-shim: close compiler warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Jiaqi Gao <jiaqi.gao@intel.com>
  • Loading branch information
gaojiaqi7 committed Dec 18, 2024
1 parent 9c68f0e commit 0b73c1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions td-shim/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ fn run_command(mut cmd: Command) {
}
}

#[cfg(target = "x86_64-unknown-none")]
#[cfg(all(target_arch = "x86_64", target_os = "none"))]
// clang is only required when building ring with the x86_64-unknown-none target. #109
fn check_environment() -> Result<()> {
use anyhow::anyhow;
Expand Down Expand Up @@ -152,7 +152,7 @@ fn real_main() -> Result<()> {
// tell cargo when to re-run the script
println!("cargo:rerun-if-changed=build.rs");

#[cfg(target = "x86_64-unknown-none")]
#[cfg(all(target_arch = "x86_64", target_os = "none"))]
check_environment()?;

println!(
Expand Down
3 changes: 0 additions & 3 deletions td-shim/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ pub mod reset_vector;
#[cfg(feature = "secure-boot")]
pub mod secure_boot;

#[cfg(feature = "fuzz")]
pub mod secure_boot;

// This GUID is used for ACPI GUID Extension HOB
// Please refer to:
// https://github.com/confidential-containers/td-shim/blob/main/doc/tdshim_spec.md#acpi-guid-extension-hob
Expand Down

0 comments on commit 0b73c1b

Please sign in to comment.