From: Jes Sorensen Date: Tue, 31 Aug 2010 07:30:37 +0000 (+0200) Subject: Change DPRINTF() to do{}while(0) to avoid compiler warning X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~7253 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7390cdfbf768617b80f570e17aa2e6c1c7b92592;p=sdk%2Femulator%2Fqemu.git Change DPRINTF() to do{}while(0) to avoid compiler warning Signed-off-by: Jes Sorensen Signed-off-by: Blue Swirl --- 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,