[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/3] hw/intc/openpic: Clean up local variable shadowing
From: |
Peter Maydell |
Subject: |
Re: [PATCH 2/3] hw/intc/openpic: Clean up local variable shadowing |
Date: |
Mon, 4 Sep 2023 17:33:11 +0100 |
On Mon, 4 Sept 2023 at 17:28, Philippe Mathieu-Daudé <philmd@linaro.org> wrote:
>
> Fix:
>
> hw/intc/openpic.c: In function ‘openpic_gbl_write’:
> hw/intc/openpic.c:614:17: warning: declaration of ‘idx’ shadows a previous
> local [-Wshadow=compatible-local]
> 614 | int idx;
> | ^~~
> hw/intc/openpic.c:568:9: note: shadowed declaration is here
> 568 | int idx;
> | ^~~
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
thanks
-- PMM