|
From: | Markus Armbruster |
Subject: | Re: [PATCH] hw/virtio/virtio-pci: Avoid compiler warning with -Wshadow |
Date: | Wed, 04 Oct 2023 12:42:11 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
Thomas Huth <thuth@redhat.com> writes: > "len" is used as parameter of the function virtio_write_config() > and as a local variable, so this causes a compiler warning > when compiling with "-Wshadow" and can be confusing for the reader. > Rename the local variable to "caplen" to avoid this problem. > > Signed-off-by: Thomas Huth <thuth@redhat.com> Queued. Thanks!
[Prev in Thread] | Current Thread | [Next in Thread] |