[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/3] hw/core/machine: Clean up local variable shadowing
From: |
Peter Maydell |
Subject: |
Re: [PATCH 1/3] hw/core/machine: Clean up local variable shadowing |
Date: |
Mon, 4 Sep 2023 17:32:28 +0100 |
On Mon, 4 Sept 2023 at 17:28, Philippe Mathieu-Daudé <philmd@linaro.org> wrote:
>
> Fix:
>
> hw/core/machine.c: In function ‘machine_initfn’:
> hw/core/machine.c:1081:17: warning: declaration of ‘obj’ shadows a
> parameter [-Wshadow=compatible-local]
> 1081 | Object *obj = OBJECT(ms);
> | ^~~
> hw/core/machine.c:1065:36: note: shadowed declaration is here
> 1065 | static void machine_initfn(Object *obj)
> | ~~~~~~~~^~~
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
thanks
-- PMM