diff options
author | Alan Modra <amodra@gmail.com> | 2011-10-19 23:09:11 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2011-10-19 23:09:11 +0000 |
commit | db9b2be466d4e07cff35f5566faa01810994724a (patch) | |
tree | d7d4d9ae0e9a740d5e86917335475bf378da3d9c /gas/config | |
parent | fa289a5fde8cdc60336d6c53e75b1969f8a82f20 (diff) | |
download | gdb-db9b2be466d4e07cff35f5566faa01810994724a.zip gdb-db9b2be466d4e07cff35f5566faa01810994724a.tar.gz gdb-db9b2be466d4e07cff35f5566faa01810994724a.tar.bz2 |
* config/tc-mips.c (micromips_add_label): Avoid gcc warning.
(md_convert_frag): Likewise.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-mips.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 57111d2..c1fbc61 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -1,6 +1,6 @@ /* tc-mips.c -- assemble code for a MIPS chip. Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, - 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 + 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. Contributed by the OSF and Ralph Campbell. Written by Keith Knowles and Ralph Campbell, working independently. @@ -3920,6 +3920,8 @@ micromips_add_label (void) #if defined(OBJ_ELF) || defined(OBJ_MAYBE_ELF) if (IS_ELF) S_SET_OTHER (s, ELF_ST_SET_MICROMIPS (S_GET_OTHER (s))); +#else + (void) s; #endif } @@ -18228,7 +18230,7 @@ md_convert_frag (bfd *abfd ATTRIBUTE_UNUSED, segT asec, fragS *fragp) | RELAX_DELAY_SLOT_SIZE_SECOND); msg = macro_warning (s); if (msg != NULL) - as_warn_where (fragp->fr_file, fragp->fr_line, msg); + as_warn_where (fragp->fr_file, fragp->fr_line, "%s", msg); subtype &= ~s; } @@ -18242,7 +18244,7 @@ md_convert_frag (bfd *abfd ATTRIBUTE_UNUSED, segT asec, fragS *fragp) & (RELAX_SECOND_LONGER | RELAX_NOMACRO | RELAX_DELAY_SLOT)); msg = macro_warning (s); if (msg != NULL) - as_warn_where (fragp->fr_file, fragp->fr_line, msg); + as_warn_where (fragp->fr_file, fragp->fr_line, "%s", msg); subtype &= ~s; } |