Re: [libvirt] [PATCH] Fix build of openvz on RHEL-5.

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

 



On 04/13/2010 01:45 PM, Chris Lalancette wrote:
> When building libvirt on RHEL-5, I saw this error:
> 
> cc1: warnings being treated as errors
> openvz/openvz_conf.c: In function 'openvzGetVPSUUID':
> openvz/openvz_conf.c:835: warning: 'saveptr' may be used uninitialized in this function
> make[3]: *** [libvirt_driver_openvz_la-openvz_conf.lo] Error 1
> 
> gcc in RHEL-5 gets upset about this usage of strtok_r (even though
> it is perfectly valid).  Just set *saveptr to NULL at the
> start to quiet it down.

ACK.  And matches what was done elsewhere in the file.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP 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]