[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 02/10] tests/throttle: Clean up global variable shadowing
From: |
Alberto Garcia |
Subject: |
Re: [PATCH 02/10] tests/throttle: Clean up global variable shadowing |
Date: |
Mon, 09 Oct 2023 10:10:51 +0000 |
On Mon 09 Oct 2023 12:02:43 PM +02, Philippe Mathieu-Daudé wrote:
> Follow all other tests pattern from this file, use the
> global 'cfg' variable to fix:
>
> tests/unit/test-throttle.c:621:20: error: declaration shadows a variable in
> the global scope [-Werror,-Wshadow]
> ThrottleConfig cfg;
> ^
> tests/unit/test-throttle.c:28:23: note: previous declaration is here
> static ThrottleConfig cfg;
> ^
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Acked-by: Alberto Garcia <berto@igalia.com>
Berto
- [PATCH 03/10] tests/virtio-scsi: Clean up global variable shadowing, (continued)
- [PATCH 03/10] tests/virtio-scsi: Clean up global variable shadowing, Philippe Mathieu-Daudé, 2023/10/09
- [PATCH 04/10] tests/cdrom-test: Clean up global variable shadowing in prepare_image(), Philippe Mathieu-Daudé, 2023/10/09
- [PATCH 06/10] tests/rtl8139: Clean up global variable shadowing, Philippe Mathieu-Daudé, 2023/10/09
- [PATCH 07/10] tests/npcm7xx_adc: Clean up global variable shadowing, Philippe Mathieu-Daudé, 2023/10/09
- [PATCH 02/10] tests/throttle: Clean up global variable shadowing, Philippe Mathieu-Daudé, 2023/10/09
- Re: [PATCH 02/10] tests/throttle: Clean up global variable shadowing,
Alberto Garcia <=
- [PATCH 09/10] tests/aio-multithread: Clean up global variable shadowing, Philippe Mathieu-Daudé, 2023/10/09
- [PATCH 08/10] tests/aio: Clean up global variable shadowing, Philippe Mathieu-Daudé, 2023/10/09
- [PATCH 10/10] tests/coroutine: Clean up global variable shadowing, Philippe Mathieu-Daudé, 2023/10/09
- Re: [PATCH 00/10] tests: Clean up global variables shadowing, Thomas Huth, 2023/10/27