提交 6a6453fb 编写于 作者: M Martin Kletzander

examples: Initialize @pos in domtop.c

This is a zero-cost workaround for a bug in GCC 8.3.0 which causes the
compilation to fail, because the compiler thinks that the value might be used
uninitialized even though it clearly cannot be.
Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
上级 9d7b9cf1
...@@ -206,7 +206,7 @@ print_cpu_usage(size_t cpu, ...@@ -206,7 +206,7 @@ print_cpu_usage(size_t cpu,
} }
for (i = 0; i < ncpus; i++) { for (i = 0; i < ncpus; i++) {
size_t pos; size_t pos = 0;
double usage; double usage;
/* check if the vCPU is in the maps */ /* check if the vCPU is in the maps */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册