[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [[PATCH v2]] libxl/arm: Fix ARM build.
From: Andrii Anisov <andrii_anisov@xxxxxxxx> 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> --- 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; } -- 2.7.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |