projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26a690c
)
migration: fix -Werror=maybe-uninitialized false-positive
author
Marc-André Lureau
<marcandre.lureau@redhat.com>
Thu, 28 Mar 2024 10:20:48 +0000
(14:20 +0400)
committer
Marc-André Lureau
<marcandre.lureau@redhat.com>
Wed, 2 Oct 2024 12:14:29 +0000
(16:14 +0400)
../migration/ram.c:1873:23: error: ‘dirty’ may be used uninitialized [-Werror=maybe-uninitialized]
When 'block' != NULL, 'dirty' is initialized.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Peter Xu <peterx@redhat.com>
migration/ram.c
patch
|
blob
|
history
diff --git
a/migration/ram.c
b/migration/ram.c
index 81eda2736a90d7de765957f8b216cb90341d5666..326ce7eb791f80b3fb35933a73576e837b82e1a2 100644
(file)
--- a/
migration/ram.c
+++ b/
migration/ram.c
@@
-1793,7
+1793,7
@@
static bool get_queued_page(RAMState *rs, PageSearchStatus *pss)
{
RAMBlock *block;
ram_addr_t offset;
- bool dirty;
+ bool dirty
= false
;
do {
block = unqueue_page(rs, &offset);