From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHVXv-0004fC-H9 for qemu-devel@nongnu.org; Tue, 21 Jul 2015 07:17:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZHVXu-0000r5-J5 for qemu-devel@nongnu.org; Tue, 21 Jul 2015 07:17:15 -0400 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:34674) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHVXu-0000kL-Bp for qemu-devel@nongnu.org; Tue, 21 Jul 2015 07:17:14 -0400 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1ZHVXn-0001Dh-HD for qemu-devel@nongnu.org; Tue, 21 Jul 2015 12:17:07 +0100 From: Peter Maydell Date: Tue, 21 Jul 2015 12:17:07 +0100 Message-Id: <1437477427-4656-3-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1437477427-4656-1-git-send-email-peter.maydell@linaro.org> References: <1437477427-4656-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PULL 2/2] disas/arm-a64: Add missing compiler attribute GCC_FMT_ATTR List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org From: Stefan Weil Type fprintf_function which fits here was defined with this attribute. Signed-off-by: Stefan Weil Reviewed-by: Peter Maydell Message-id: 1437208027-14584-1-git-send-email-sw@weilnetz.de Signed-off-by: Peter Maydell --- 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_; }; -- 1.9.1