On 04/19/2012 07:45 AM, Jiri Denemark wrote:

>> +#define virX86CpuIncompatible(MSG, CPU_DEF)                             \
>> +        do {                                                            \

>> +        } while (0);
> 
> I can't think of any case where ";;" would be a problem but I'd remove the ';'
> from the end of this macro anyway

I can:

if (cond)
    virX86CpuIncompatible(msg, def);
else
    do_something_else();

that bogus ';' in the #define means you now have a syntax error.

-- 
Eric Blake   [email protected]    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to