Re: [PATCH] extract-cert: Wrap key_pass with '#ifdef USE_PKCS11_ENGINE'
Nathan Chancellor <[email protected]> Thu, 16 Apr 2026 14:21:47 -0700
| Newsgroups | org.kernel.vger.keyrings,dev.linux.lists.llvm,org.kernel.vger.linux-kernel,org.kernel.vger.stable |
|---|---|
| Message-ID | <177637450781.4150069.540537972769992997.b4-ty@b4> |
On Wed, 25 Mar 2026 18:19:15 -0700, Nathan Chancellor wrote:
> A recent strengthening of -Wunused-but-set-variable (enabled with -Wall)
> in clang under a new subwarning, -Wunused-but-set-global, points out an
> unused static global variable in certs/extract-cert.c:
>
> certs/extract-cert.c:46:20: error: variable 'key_pass' set but not used [-Werror,-Wunused-but-set-global]
> 46 | static const char *key_pass;
> | ^
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/nathan/linux.git clang-fixes
Thanks!
[1/1] extract-cert: Wrap key_pass with '#ifdef USE_PKCS11_ENGINE'
https://git.kernel.org/nathan/c/4f96b7c68a990
Please look out for regression or issue reports or other follow up
comments, as they may result in the patch/series getting dropped or
reverted.
Best regards,
--
Nathan Chancellor <[email protected]>