[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen master] libxl/arm: Fix ARM build.



commit 690fdc23dcc9d918c6e339b06bbfa227471f61da
Author:     Andrii Anisov <andrii_anisov@xxxxxxxx>
AuthorDate: Tue May 16 18:57:53 2017 +0300
Commit:     Wei Liu <wei.liu2@xxxxxxxxxx>
CommitDate: Wed May 17 17:14:49 2017 +0100

    libxl/arm: Fix ARM build.
    
    Initialise *size in default branch to prevent certain compilers (i.e.
    Linaro GCC 5.2-2015.11-2) from reporting "variable may be used 
uninitialized"
    errors in caller function.
    
    Signed-off-by: Julien Grall <julien.grall@xxxxxxx>
    Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx>
    Release-acked-by: Julien Grall <julien.grall@xxxxxxx>
---
 tools/libxl/libxl_arm_acpi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/libxl/libxl_arm_acpi.c b/tools/libxl/libxl_arm_acpi.c
index db113db..a6456be 100644
--- a/tools/libxl/libxl_arm_acpi.c
+++ b/tools/libxl/libxl_arm_acpi.c
@@ -87,6 +87,7 @@ static int libxl__estimate_madt_size(libxl__gc *gc,
         break;
     default:
         LOG(ERROR, "Unknown GIC version");
+        *size = 0;
         rc = ERROR_FAIL;
         break;
     }
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.