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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

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

commit 690fdc23dcc9d918c6e339b06bbfa227471f61da
Author:     Andrii Anisov <[hidden email]>
AuthorDate: Tue May 16 18:57:53 2017 +0300
Commit:     Wei Liu <[hidden email]>
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 <[hidden email]>
    Acked-by: Wei Liu <[hidden email]>
    Release-acked-by: Julien Grall <[hidden email]>
 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,
         LOG(ERROR, "Unknown GIC version");
+        *size = 0;
         rc = ERROR_FAIL;
generated by git-patchbot for /home/xen/git/xen.git#master

Xen-changelog mailing list
[hidden email]