File a4604eb0-libxl-loglevel-build-fix.patch of Package libvirt.openSUSE_Leap_42.1_Update
commit a4604eb086721542f9faa866039922c77e899d76
Author: Jim Fehlig <jfehlig@suse.com>
Date: Tue Sep 15 21:10:59 2015 -0600
libxl: fix compiler error introduced by commit ba25c214
libxl/libxl_conf.c: In function 'libxlDriverConfigNew':
libxl/libxl_conf.c:1560:30: error: 'log_level' may be used uninitialized
in this function [-Werror=maybe-uninitialized]
Index: libvirt-1.2.18.4/src/libxl/libxl_conf.c
===================================================================
--- libvirt-1.2.18.4.orig/src/libxl/libxl_conf.c
+++ libvirt-1.2.18.4/src/libxl/libxl_conf.c
@@ -1495,7 +1495,7 @@ libxlDriverConfigNew(void)
{
libxlDriverConfigPtr cfg;
char *log_file = NULL;
- xentoollog_level log_level;
+ xentoollog_level log_level = XTL_DEBUG;
char ebuf[1024];
unsigned int free_mem;