] libxl/arm: Fix ARM build.
PATCH v2 1/1 ] libxl/arm: Fix ARM build.
From: Andrii Anisov <[email protected]>
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.
--- tools/libxl/libxl_arm_acpi.c | 1 + 1 file changed, 1 insertion(+)
tools/libxl/libxl_arm_acpi.c +1 -0
@@ -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 ; }
Signature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Quoted 7 lines · Andrii Anisov
From: Andrii Anisov <[email protected]>
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 <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Hi,
Quoted 10 lines · Wei Liu
Quoted 7 lines · Andrii Anisov
From: Andrii Anisov <[email protected]>
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 <[email protected]>Acked-by Wei Liu <[email protected]>
Cheers,
Signature · 6 lines
Julien Grall _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel