xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [[PATCH]] libxl/arm: Fix ARM build.
@ 2017-05-16 10:23 Andrii Anisov
  2017-05-16 10:59 ` Andrii Anisov
  0 siblings, 1 reply; 6+ messages in thread
From: Andrii Anisov @ 2017-05-16 10:23 UTC (permalink / raw)
  To: xen-devel; +Cc: Julien Grall, Andrii Anisov

From: Andrii Anisov <andrii_anisov@epam.com>

Some compilers do not (validly?) detect that size will always be
initialized when (rc > 0), so implicitly initialize it.

Signed-off-by: Julien Grall <julien.grall@arm.com>
---
 tools/libxl/libxl_arm_acpi.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/libxl/libxl_arm_acpi.c b/tools/libxl/libxl_arm_acpi.c
index db113db..f61aec6 100644
--- a/tools/libxl/libxl_arm_acpi.c
+++ b/tools/libxl/libxl_arm_acpi.c
@@ -73,6 +73,8 @@ static int libxl__estimate_madt_size(libxl__gc *gc,
 {
     int rc = 0;
 
+    *size = 0;
+
     switch (info->arch_arm.gic_version) {
     case LIBXL_GIC_VERSION_V2:
         *size = sizeof(struct acpi_table_madt) +
-- 
2.7.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-05-16 15:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-16 10:23 [[PATCH]] libxl/arm: Fix ARM build Andrii Anisov
2017-05-16 10:59 ` Andrii Anisov
2017-05-16 11:03   ` Wei Liu
2017-05-16 11:06     ` Wei Liu
2017-05-16 15:14     ` Andrii Anisov
2017-05-16 15:27       ` Wei Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).