[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 16/22] crypto/cipher-gnutls.c: Clean up local variable sha
From: |
Daniel P . Berrangé |
Subject: |
Re: [PATCH v2 16/22] crypto/cipher-gnutls.c: Clean up local variable shadowing |
Date: |
Mon, 4 Sep 2023 17:27:43 +0100 |
User-agent: |
Mutt/2.2.9 (2022-11-12) |
On Mon, Sep 04, 2023 at 06:12:28PM +0200, Philippe Mathieu-Daudé wrote:
> Fix:
>
> In file included from crypto/cipher.c:140:
> crypto/cipher-gnutls.c.inc: In function ‘qcrypto_gnutls_cipher_encrypt’:
> crypto/cipher-gnutls.c.inc:116:17: warning: declaration of ‘err’ shadows a
> previous local [-Wshadow=compatible-local]
> 116 | int err = gnutls_cipher_init(&handle, ctx->galg, &gkey,
> NULL);
> | ^~~
> crypto/cipher-gnutls.c.inc:94:9: note: shadowed declaration is here
> 94 | int err;
> | ^~~
> ---
>
> crypto/cipher-gnutls.c.inc: In function ‘qcrypto_gnutls_cipher_decrypt’:
> crypto/cipher-gnutls.c.inc:177:17: warning: declaration of ‘err’ shadows a
> previous local [-Wshadow=compatible-local]
> 177 | int err = gnutls_cipher_init(&handle, ctx->galg, &gkey,
> NULL);
> | ^~~
> crypto/cipher-gnutls.c.inc:154:9: note: shadowed declaration is here
> 154 | int err;
> | ^~~
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> crypto/cipher-gnutls.c.inc | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
and if you want to include it in general pull request
Acked-by: Daniel P. Berrangé <berrange@redhat.com>
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
- [PATCH v2 10/22] hw/arm/aspeed: Clean up local variable shadowing, (continued)
- [PATCH v2 10/22] hw/arm/aspeed: Clean up local variable shadowing, Philippe Mathieu-Daudé, 2023/09/04
- [PATCH v2 11/22] hw/ide/ahci: Clean up local variable shadowing, Philippe Mathieu-Daudé, 2023/09/04
- [PATCH v2 12/22] hw/m68k: Clean up local variable shadowing, Philippe Mathieu-Daudé, 2023/09/04
- [PATCH v2 13/22] hw/microblaze: Clean up local variable shadowing, Philippe Mathieu-Daudé, 2023/09/04
- [PATCH v2 14/22] hw/nios2: Clean up local variable shadowing, Philippe Mathieu-Daudé, 2023/09/04
- [PATCH v2 15/22] net/eth: Clean up local variable shadowing, Philippe Mathieu-Daudé, 2023/09/04
- [PATCH v2 16/22] crypto/cipher-gnutls.c: Clean up local variable shadowing, Philippe Mathieu-Daudé, 2023/09/04
- Re: [PATCH v2 16/22] crypto/cipher-gnutls.c: Clean up local variable shadowing,
Daniel P . Berrangé <=
- [PATCH v2 17/22] util/vhost-user-server: Clean up local variable shadowing, Philippe Mathieu-Daudé, 2023/09/04
- [PATCH v2 18/22] semihosting/arm-compat: Clean up local variable shadowing, Philippe Mathieu-Daudé, 2023/09/04
- [PATCH v2 19/22] linux-user/strace: Clean up local variable shadowing, Philippe Mathieu-Daudé, 2023/09/04
- [PATCH v2 20/22] sysemu/device_tree: Clean up local variable shadowing, Philippe Mathieu-Daudé, 2023/09/04
- [RFC PATCH v2 22/22] softmmu/physmem: Clean up local variable shadowing, Philippe Mathieu-Daudé, 2023/09/04