diff options
| author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2020-05-07 14:11:28 +0200 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2020-05-18 19:05:25 +0200 |
| commit | c78dd00e3529f923280e2ab51e60dfcdad2c6094 (patch) | |
| tree | 03fc2430f3532edd28b0216cb81b43302042269a /hw/arm/virt.c | |
| parent | e5d8a4068526d3fb692e3402485edd03bc11c084 (diff) | |
| download | focaccia-qemu-c78dd00e3529f923280e2ab51e60dfcdad2c6094.tar.gz focaccia-qemu-c78dd00e3529f923280e2ab51e60dfcdad2c6094.zip | |
block/block-copy: Fix uninitialized variable in block_copy_task_entry
Fix when building with -Os:
CC block/block-copy.o
block/block-copy.c: In function ‘block_copy_task_entry’:
block/block-copy.c:428:38: error: ‘error_is_read’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
428 | t->call_state->error_is_read = error_is_read;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200507121129.29760-2-philmd@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/arm/virt.c')
0 files changed, 0 insertions, 0 deletions