Re: [PATCH] extract-cert: Wrap key_pass with '#ifdef USE_PKCS11_ENGINE'

From: Nathan Chancellor

Date: Thu Apr 16 2026 - 17:23:11 EST


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 <nathan@xxxxxxxxxx>