Fix build failure for score

Tristan Gingold gingold@adacore.com
Mon Mar 1 15:51:00 GMT 2010


Hi,

while checking the 2.20.1 release I found a warning that trigger -Werror.

Ok for mainline ?

Tristan.

gas/
2010-03-01  Tristan Gingold  <gingold@adacore.com>

	* config/tc-score7.c (s7_frag_check): Add ATTRIBUTE_UNUSED.

*** gas/config/tc-score7.c	11 Dec 2009 13:42:11 -0000	1.5
--- gas/config/tc-score7.c	1 Mar 2010 15:50:12 -0000
***************
*** 6280,6286 ****
     Called after md_convert_frag().  */
  
  static void
! s7_frag_check (fragS * fragp)
  {
    know (fragp->insn_addr <= s7_RELAX_PAD_BYTE);
  }
--- 6280,6286 ----
     Called after md_convert_frag().  */
  
  static void
! s7_frag_check (fragS * fragp ATTRIBUTE_UNUSED)
  {
    know (fragp->insn_addr <= s7_RELAX_PAD_BYTE);
  }



More information about the Binutils mailing list