From patchwork Mon Aug 30 15:35:46 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [13/14] Change DPRINTF() to do{}while(0) to avoid compiler warning Date: Mon, 30 Aug 2010 05:35:46 -0000 From: Jes Sorensen X-Patchwork-Id: 63062 Message-Id: <1283182547-26116-14-git-send-email-Jes.Sorensen@redhat.com> To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, Jes.Sorensen@redhat.com From: Jes Sorensen Signed-off-by: Jes Sorensen --- slirp/bootp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/slirp/bootp.c b/slirp/bootp.c index 3e4e881..41460ff 100644 --- a/slirp/bootp.c +++ b/slirp/bootp.c @@ -33,7 +33,7 @@ static const uint8_t rfc1533_cookie[] = { RFC1533_COOKIE }; #define DPRINTF(fmt, ...) \ do if (slirp_debug & DBG_CALL) { fprintf(dfd, fmt, ## __VA_ARGS__); fflush(dfd); } while (0) #else -#define DPRINTF(fmt, ...) +#define DPRINTF(fmt, ...) do{}while(0) #endif static BOOTPClient *get_new_addr(Slirp *slirp, struct in_addr *paddr,