]> git.proxmox.com Git - qemu.git/commitdiff
Change DPRINTF() to do{}while(0) to avoid compiler warning
authorJes Sorensen <Jes.Sorensen@redhat.com>
Tue, 31 Aug 2010 07:30:37 +0000 (09:30 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 4 Sep 2010 09:45:54 +0000 (09:45 +0000)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
slirp/bootp.c

index 3e4e8810be304937cddea595cde600d980e5a906..41460ffaa59d457052dbe8a88b21129d0b5b1432 100644 (file)
@@ -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,