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>
This commit is contained in:
Mike Beaton 2024-04-06 23:22:19 +01:00 committed by mergify[bot]
parent 90fb3c6cfc
commit e548e1cd73
1 changed files with 1 additions and 2 deletions

View File

@ -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.
//