This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] avoid a warning when target is ia64-openvms


Hi,

this patch adds a cast to avoid a warning within tc-ia64.c (case value outside the enum range).

Applied as obvious.

Tristan.

gas/
2011-04-01  Tristan Gingold  <gingold@adacore.com>

	* config/tc-ia64.c (md_apply_fix): Add a cast to avoid a warning.

Index: gas/config/tc-ia64.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-ia64.c,v
retrieving revision 1.214
diff -c -r1.214 tc-ia64.c
*** gas/config/tc-ia64.c	16 Sep 2010 23:55:10 -0000	1.214
--- gas/config/tc-ia64.c	1 Apr 2011 08:53:18 -0000
***************
*** 11286,11292 ****
      }
    if (fix->fx_addsy)
      {
!       switch (fix->fx_r_type)
  	{
  	case BFD_RELOC_UNUSED:
  	  /* This must be a TAG13 or TAG13b operand.  There are no external
--- 11286,11292 ----
      }
    if (fix->fx_addsy)
      {
!       switch ((unsigned) fix->fx_r_type)
  	{
  	case BFD_RELOC_UNUSED:
  	  /* This must be a TAG13 or TAG13b operand.  There are no external


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]