Skip to content

Commit

Permalink
Fix compilation warning in webpki library
Browse files Browse the repository at this point in the history
The following warning is being fixed:

warning: unused import: `CONSTRUCTED`
  --> deps/spdm-rs/external/webpki/src/der.rs:17:24
   |
17 |     der::{nested, Tag, CONSTRUCTED},
   |                        ^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

That warning was already fixed with this patch:
briansmith/webpki@8f81719

Once webpki library version will be bumped up, this patch could be dropped.

Signed-off-by: Zbigniew Lukwinski <[email protected]>
  • Loading branch information
zlukwins authored and jyao1 committed Dec 19, 2024
1 parent d3c16d3 commit db2b7ca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sh_script/pre-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ patch-webpki() {
pushd external/webpki
git reset --hard f84a538a5cd281ba1ffc0d54bbe5824cf5969703
git clean -xdf

# apply the patch to get rid of unused import warning during compilation
# https://github.com/briansmith/webpki/commit/8f81719df5b47bda95f15a7655be811e52e12997
git cherry-pick 8f81719df5b47bda95f15a7655be811e52e12997

git apply ../patches/webpki/0001-Add-support-for-verifying-certificate-chain-with-EKU.patch
popd
}
Expand Down

0 comments on commit db2b7ca

Please sign in to comment.