Skip to content

Commit

Permalink
CryptoPkg: Fix unused variable in CryptX509.c
Browse files Browse the repository at this point in the history
Without this change we get:

  error: variable 'Index' set but not used

when building on XCODE5.

Signed-off-by: Savva Mitrofanov <[email protected]>
Signed-off-by: Mike Beaton <[email protected]>
  • Loading branch information
mikebeaton committed Sep 20, 2024
1 parent 9e693dd commit a6a5da6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CryptoPkg/Library/BaseCryptLib/Pk/CryptX509.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ X509ConstructCertificateStackV (

STACK_OF (X509) *CertStack;
BOOLEAN Status;
UINTN Index;

//
// Check input parameters.
Expand All @@ -124,7 +123,7 @@ X509ConstructCertificateStackV (
}
}

for (Index = 0; ; Index++) {
while (TRUE) {
//
// If Cert is NULL, then it is the end of the list.
//
Expand Down

0 comments on commit a6a5da6

Please sign in to comment.