[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 01/22] util/coroutine: fix -Werror=maybe-uninitialized false-p
From: |
marcandre . lureau |
Subject: |
[PATCH v3 01/22] util/coroutine: fix -Werror=maybe-uninitialized false-positive |
Date: |
Mon, 30 Sep 2024 12:14:36 +0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
../util/qemu-coroutine.c:150:8: error: ‘batch’ may be used uninitialized
[-Werror=maybe-uninitialized]
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
---
util/qemu-coroutine.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/util/qemu-coroutine.c b/util/qemu-coroutine.c
index eb4eebefdf..64d6264fc7 100644
--- a/util/qemu-coroutine.c
+++ b/util/qemu-coroutine.c
@@ -136,7 +136,7 @@ static Coroutine *coroutine_pool_get_local(void)
static void coroutine_pool_refill_local(void)
{
CoroutinePool *local_pool = get_ptr_local_pool();
- CoroutinePoolBatch *batch;
+ CoroutinePoolBatch *batch = NULL;
WITH_QEMU_LOCK_GUARD(&global_pool_lock) {
batch = QSLIST_FIRST(&global_pool);
--
2.45.2.827.g557ae147e6
- [PATCH v3 00/22] -Werror=maybe-uninitialized fixes, marcandre . lureau, 2024/09/30
- [PATCH v3 03/22] hw/qxl: fix -Werror=maybe-uninitialized false-positives, marcandre . lureau, 2024/09/30
- [PATCH v3 01/22] util/coroutine: fix -Werror=maybe-uninitialized false-positive,
marcandre . lureau <=
- [PATCH v3 02/22] util/timer: fix -Werror=maybe-uninitialized false-positive, marcandre . lureau, 2024/09/30
- [PATCH v3 06/22] block/mirror: fix -Werror=maybe-uninitialized false-positive, marcandre . lureau, 2024/09/30
- [PATCH v3 04/22] nbd: fix -Werror=maybe-uninitialized false-positive, marcandre . lureau, 2024/09/30
- [PATCH v3 07/22] block/stream: fix -Werror=maybe-uninitialized false-positives, marcandre . lureau, 2024/09/30
- [PATCH v3 08/22] hw/ahci: fix -Werror=maybe-uninitialized false-positive, marcandre . lureau, 2024/09/30
- [PATCH v3 11/22] block/block-copy: fix -Werror=maybe-uninitialized false-positive, marcandre . lureau, 2024/09/30
- [PATCH v3 12/22] migration: fix -Werror=maybe-uninitialized false-positives, marcandre . lureau, 2024/09/30
- [PATCH v3 10/22] hw/sdhci: fix -Werror=maybe-uninitialized false-positive, marcandre . lureau, 2024/09/30