From e2785c4472a06867e3ddbd11a5609d3f1a9e0f32 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Sun, 29 Oct 2006 18:18:34 +0000 Subject: [PATCH] * config/tc-spu.c (md_assemble): Cast printf string size parameter to int in order to avoid a compiler warning. --- gas/ChangeLog | 5 +++++ gas/config/tc-spu.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 17226e776b..9172b7fa6c 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2006-10-29 Nick Clifton + + * config/tc-spu.c (md_assemble): Cast printf string size parameter + to int in order to avoid a compiler warning. + 2006-10-27 Andrew Stubbs * config/tc-sh.c (md_assemble): Define size of branches. diff --git a/gas/config/tc-spu.c b/gas/config/tc-spu.c index 8b4c8f8db0..681bc20ddc 100644 --- a/gas/config/tc-spu.c +++ b/gas/config/tc-spu.c @@ -333,7 +333,7 @@ md_assemble (char *op) const char *d = syntax_error_param; while (*d != '$') d--; - as_warn (_("Treating '%-*s' as a symbol."), syntax_error_param - d, d); + as_warn (_("Treating '%-*s' as a symbol."), (int)(syntax_error_param - d), d); } /* grow the current frag and plop in the opcode */