Received: from eggs.gnu.org ([2001:4830:134:3::10]:57322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGNT7-0001ZY-Fc for qemu-devel@nongnu.org; Sat, 18 Jul 2015 04:27:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZGNT4-0001Gs-8c for qemu-devel@nongnu.org; Sat, 18 Jul 2015 04:27:37 -0400 From: Stefan Weil Date: Sat, 18 Jul 2015 10:27:07 +0200 Message-Id: <1437208027-14584-1-git-send-email-sw@weilnetz.de> Subject: [Qemu-devel] [PATCH for-2.4] disas/arm-a64: Add missing compiler attribute GCC_FMT_ATTR List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU Trivial , Peter Maydell Cc: Stefan Weil , QEMU Developer Type fprintf_function which fits here was defined with this attribute. Signed-off-by: Stefan Weil --- This is an optional trivial patch for 2.4 which fixes compiler warnings in my build environment (with -Wextra). disas/arm-a64.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/disas/arm-a64.cc b/disas/arm-a64.cc index b0803f9..b57256b 100644 --- a/disas/arm-a64.cc +++ b/disas/arm-a64.cc @@ -42,7 +42,7 @@ public: stream_ = stream; } - void SetPrintf(int (*printf_fn)(FILE *, const char *, ...)) { + void SetPrintf(fprintf_function printf_fn) { printf_ = printf_fn; } @@ -53,7 +53,7 @@ protected: } private: - int (*printf_)(FILE *, const char *, ...); + fprintf_function printf_; FILE *stream_; }; -- 2.1.4