x509: fix -Wunused-but-set-variable
authorSam James <sam@gentoo.org>
Wed, 19 Oct 2022 23:14:53 +0000 (00:14 +0100)
committerTomas Mraz <tomas@openssl.org>
Fri, 21 Oct 2022 13:56:32 +0000 (15:56 +0200)
commitc71318668571b3680fe10035a1a350ff46e459af
tree870337dd8fb5658757874780847fa2ed33b62d7d
parentf9e8e2c0ab73409862bb78a9285c1b72e0511750
x509: fix -Wunused-but-set-variable

The value of 'l' isn't ever actually used.

Fixes this error with Clang 15:
```
crypto/x509/x_name.c:506:9: error: variable 'l' set but not used [-Werror,-Wunused-but-set-variable]
    int l, i;
        ^
1 error generated.
```

Signed-off-by: Sam James <sam@gentoo.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19450)
crypto/x509/x_name.c