diff options
| author | Thomas Huth <thuth@redhat.com> | 2023-10-04 11:53:02 +0200 |
|---|---|---|
| committer | Markus Armbruster <armbru@redhat.com> | 2023-10-06 10:56:54 +0200 |
| commit | 5ae80e6297080b3592b4658d92acfdba5255fc8b (patch) | |
| tree | 813eebedd93dfb5012e3ddb82010920501cd75dc /scripts/qapi/parser.py | |
| parent | 5d63cb15bf2667486117690de02bbb85c1a36942 (diff) | |
| download | qemu-5ae80e6297080b3592b4658d92acfdba5255fc8b.zip qemu-5ae80e6297080b3592b4658d92acfdba5255fc8b.tar.gz qemu-5ae80e6297080b3592b4658d92acfdba5255fc8b.tar.bz2 | |
hw/virtio/virtio-pci: Avoid compiler warning with -Wshadow
"len" is used as parameter of the functions virtio_write_config()
and virtio_read_config(), and additionally as a local variable,
so this causes a compiler warning when compiling with "-Wshadow"
and can be confusing for the reader. Rename the local variables
to "caplen" to avoid this problem.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20231004095302.99037-1-thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'scripts/qapi/parser.py')
0 files changed, 0 insertions, 0 deletions
