summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Beaton <mjsbeaton@gmail.com>2024-04-06 23:22:19 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-09-27 16:57:36 +0000
commite548e1cd73fe16b59ff9b5f11b37456e4c3de10f (patch)
tree4ece4df2ca36d4df565b18cb8a235f7d7a7f6436
parent90fb3c6cfcca9a736786d2c10ffe85a9eaf524f2 (diff)
downloadedk2-e548e1cd73fe16b59ff9b5f11b37456e4c3de10f.tar.gz
edk2-e548e1cd73fe16b59ff9b5f11b37456e4c3de10f.tar.bz2
edk2-e548e1cd73fe16b59ff9b5f11b37456e4c3de10f.zip
CryptoPkg: Fix unused variable in CryptX509.c
Without this change we get: error: variable 'Index' set but not used when building on XCODE5. Co-authored-by: Savva Mitrofanov <savvamtr@gmail.com> Signed-off-by: Mike Beaton <mjsbeaton@gmail.com>
-rw-r--r--CryptoPkg/Library/BaseCryptLib/Pk/CryptX509.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/CryptoPkg/Library/BaseCryptLib/Pk/CryptX509.c b/CryptoPkg/Library/BaseCryptLib/Pk/CryptX509.c
index 349d37b045..628e71439e 100644
--- a/CryptoPkg/Library/BaseCryptLib/Pk/CryptX509.c
+++ b/CryptoPkg/Library/BaseCryptLib/Pk/CryptX509.c
@@ -102,7 +102,6 @@ X509ConstructCertificateStackV (
STACK_OF (X509) *CertStack;
BOOLEAN Status;
- UINTN Index;
//
// Check input parameters.
@@ -124,7 +123,7 @@ X509ConstructCertificateStackV (
}
}
- for (Index = 0; ; Index++) {
+ while (TRUE) {
//
// If Cert is NULL, then it is the end of the list.
//