Skip to content

Commit

Permalink
disas/arm-a64: Add missing compiler attribute GCC_FMT_ATTR
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
stweil authored and pm215 committed Jul 21, 2015
1 parent 4b7a6bf commit 57b7309
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions disas/arm-a64.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class QEMUDisassembler : public Disassembler {
stream_ = stream;
}

void SetPrintf(int (*printf_fn)(FILE *, const char *, ...)) {
void SetPrintf(fprintf_function printf_fn) {
printf_ = printf_fn;
}

Expand All @@ -53,7 +53,7 @@ class QEMUDisassembler : public Disassembler {
}

private:
int (*printf_)(FILE *, const char *, ...);
fprintf_function printf_;
FILE *stream_;
};

Expand Down

0 comments on commit 57b7309

Please sign in to comment.