Skip to content

Commit

Permalink
Silence linter
Browse files Browse the repository at this point in the history
Clang tidy is complaining about unused variables in the cert-validation
example, although they are being used.
This commit removes one variable that really is unused and adds a NOLINT
exception to the other variables.
  • Loading branch information
yannik-dittmar authored and zuul[bot] committed Mar 18, 2024
1 parent 001c4da commit b53a667
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion examples/cert-validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ int main()
{
X509Certificate rootCA = X509Certificate::fromPEMFile("root3.pem");
X509Certificate intermediateCA = X509Certificate::fromPEMFile("root3.int1.pem");
X509Certificate intermediateCA_1 = X509Certificate::fromPEMFile("root3.int1.int11.pem");

CertificateRevocationList rootCRL = //NOLINT: cland-tidy thinks this is not used, but it is
CertificateRevocationList::fromPEMFile("root3.crl.pem");
Expand Down

0 comments on commit b53a667

Please sign in to comment.