• E
    build: avoid older gcc warning · 3da355e8
    Eric Blake 提交于
    Jim Fehlig reported a compilation error with older gcc 4.3.4:
    
    libvirt.c: In function 'virDomainGetEmulatorPinInfo':
    libvirt.c:9111: error: logical '&&' with non-zero constant will always evaluate as true [-Wlogical-op]
    
    It looks like someone programmed via too much copy-and-paste.
    
    * src/libvirt.c (virDomainGetEmulatorPinInfo): Multiplying by 1 is
    a no-op, and thus will never overflow.
    3da355e8
libvirt.c 595.6 KB