From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:47019) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEdTH-00052z-Ke for qemu-devel@nongnu.org; Tue, 26 Apr 2011 04:18:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QEdTF-0007th-QJ for qemu-devel@nongnu.org; Tue, 26 Apr 2011 04:18:11 -0400 Received: from moutng.kundenserver.de ([212.227.17.8]:51733) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEdTF-0007sU-E0 for qemu-devel@nongnu.org; Tue, 26 Apr 2011 04:18:09 -0400 From: Stefan Weil Date: Tue, 26 Apr 2011 10:17:48 +0200 Message-Id: <1303805868-9896-1-git-send-email-weil@mail.berlios.de> Subject: [Qemu-devel] [PATCH] rtl8139: Fix compilation for w32/w64 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Aurelien Jarno Cc: QEMU Developers , Benjamin Poirier Compilation for Windows needs a different declaration for the printf format attribute, so use the macro which was defined for this purpose. Cc: Benjamin Poirier Signed-off-by: Stefan Weil --- hw/rtl8139.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/hw/rtl8139.c b/hw/rtl8139.c index 623fb0c..b997fe7 100644 --- a/hw/rtl8139.c +++ b/hw/rtl8139.c @@ -88,8 +88,7 @@ # define DPRINTF(fmt, ...) \ do { fprintf(stderr, "RTL8139: " fmt, ## __VA_ARGS__); } while (0) #else -static inline __attribute__ ((format (printf, 1, 2))) - int DPRINTF(const char *fmt, ...) +static inline GCC_FMT_ATTR(1, 2) int DPRINTF(const char *fmt, ...) { return 0; } -- 1.7.2.5