aboutsummaryrefslogtreecommitdiff
path: root/disas/arm-a64.cc
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2015-07-21 11:18:45 +0100
committerPeter Maydell <peter.maydell@linaro.org>2015-07-21 11:18:45 +0100
commit57b73090e041ece40cc619a3c43a6fafcb3dd647 (patch)
treebb109bb8955284178806f388b14325aedacd4e23 /disas/arm-a64.cc
parent4b7a6bf402bd064605c287eecadc493ccf2d4897 (diff)
disas/arm-a64: Add missing compiler attribute GCC_FMT_ATTR
Type fprintf_function which fits here was defined with this attribute. Signed-off-by: Stefan Weil <sw@weilnetz.de> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 1437208027-14584-1-git-send-email-sw@weilnetz.de Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'disas/arm-a64.cc')
-rw-r--r--disas/arm-a64.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/disas/arm-a64.cc b/disas/arm-a64.cc
index b0803f9cc3..b57256b267 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_;
};