summaryrefslogtreecommitdiffstats
path: root/include/hw/boards.h
diff options
context:
space:
mode:
authorChen Qun2020-10-14 13:44:30 +0200
committerEric Blake2020-10-26 12:56:24 +0100
commita024890a64085d3d37ad7eda164775251285c14c (patch)
tree2345fa9bf8d43c5904e4820e5cd7398aeeeb83c5 /include/hw/boards.h
parentmigration/block-dirty-bitmap: fix larger granularity bitmaps (diff)
downloadqemu-a024890a64085d3d37ad7eda164775251285c14c.tar.gz
qemu-a024890a64085d3d37ad7eda164775251285c14c.tar.xz
qemu-a024890a64085d3d37ad7eda164775251285c14c.zip
migration/block-dirty-bitmap: fix uninitialized variable warning
A default value is provided for the variable 'bitmap_name' to avoid a compiler warning. The compiler showed the warning: migration/block-dirty-bitmap.c:1090:13: warning: ‘bitmap_name’ may be used uninitialized in this function [-Wmaybe-uninitialized] g_strlcpy(s->bitmap_name, bitmap_name, sizeof(s->bitmap_name)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Reported-by: Euler Robot <euler.robot@huawei.com> Signed-off-by: Chen Qun <kuhn.chenqun@huawei.com> Message-Id: <20201014114430.1898684-1-kuhn.chenqun@huawei.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> [eblake: commit message grammar tweaks] Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'include/hw/boards.h')
0 files changed, 0 insertions, 0 deletions