[Libvir] [PATCH] Check calls to printf-like functions (and some fixes)

Richard W.M. Jones rjones at redhat.com
Mon Mar 12 17:47:10 UTC 2007

Daniel P. Berrange wrote:
> Which would then turn into
>    if (foo)
>       ;
> Which causes GCC to complain with
>   cc1: warnings being treated as errors
>   driver.c: In function ‘qemudMonitorCommand’:
>   driver.c:101: warning: empty body in an if-statement
> If you have empty  do{}while(0)   then gcc won't complain.
> So all we need do is drop the extra ';' from the #define for qemudDebug,
> but keep the empty loop

Ah ... what a stupid warning!

Yes agreed in that case.  Can we apply with your modification then?


More information about the libvir-list mailing list