On 06/04/2013 06:47 AM, Daniel P. Berrange wrote:
> conf/domain_conf.c: In function
'virDomainHostdevDefParseXML':
> conf/domain_conf.c:3915:36: error: 'next_unit' may be used uninitialized in
> this function [-Werror=uninitialized]
> Is it worth to submit a new bug report/patch the source?
We'd accept a patch initializing it as you suggest
In fact, it's already been patched, shortly after 1.0.6 was released:
commit 4db39e3fee6ae75ea772767e72e276bccd10bb11
Author: Jiri Denemark <jdenemar(a)redhat.com>
Date: Mon Jun 3 12:19:09 2013 +0200
Fix warning about using an uninitialized next_unit value
Using an uninitialized value and a bool saying if the value is valid may
confuse compilators.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library
http://libvirt.org