[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2] migration/ram: Fix compilation with -Wshadow=local
|
From: |
Juan Quintela |
|
Subject: |
Re: [PATCH v2] migration/ram: Fix compilation with -Wshadow=local |
|
Date: |
Tue, 24 Oct 2023 12:32:09 +0200 |
|
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.3 (gnu/linux) |
Thomas Huth <thuth@redhat.com> wrote:
> Rename the variable here to avoid that it shadows a variable from
> the beginning of the function scope. With this change the code now
> successfully compiles with -Wshadow=local.
>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
queued.
> ---
> v2: Need the value for the qemu_file_set_error() line, too
I also hate qemu_file_set_error().
Direct translation of Spanish Saying:
Evil of many, consolation of fools
O:-)