Re: [PATCH] conf: explicitly initialize 'cpumask' variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 28, 2015 at 08:30:30 +0400, Roman Bogorodskiy wrote:
> Build with clang fails with:
> 
>   CC       conf/libvirt_conf_la-domain_conf.lo
>   conf/domain_conf.c:13377:9: error: variable 'cpumask' is used
>   uninitialized whenever 'if' condition is true
>   [-Werror,-Wsometimes-uninitialized]
>       if (!(tmp = virXMLPropString(node, "cpuset"))) {
>                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> and many other similar errors regarding the 'cpuset' variable.
> 
> Fix by explicitly initializing it with NULL.
> ---

ACK, qualifies for both build-breaker and trivial rule.

Peter

Attachment: signature.asc
Description: Digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]