[libvirt] Compiler warnings

Eric Blake eblake at redhat.com
Mon Oct 17 16:11:19 UTC 2011


On 10/17/2011 09:51 AM, Alex Jia wrote:
> Eric,
> # rpm -q gcc
> gcc-4.4.6-3.el6.x86_64

I'm still not seeing it on my RHEL 6 host.  What version of glibc (in 
case it's a header problem), and is this the latest libvirt.git or a 
particular source rpm rebuild?  What's on line 430 of the file in question?

>>     CC     libvirt_util_la-buf.lo
>> util/buf.c: In function 'virBufferEscape':
>> util/buf.c:430: warning: logical '&&' with non-zero constant will always
>> evaluate as true [-Wlogical-op]

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org




More information about the libvir-list mailing list