20 Apr
2012
20 Apr
'12
6:48 a.m.
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 eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org