This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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]

Add missing break to switch statement in dv-tx3904tmr.c


Hi Guys,

  I am applying the patch below as an obvious fix for a small problem
  compiling the sim/mips/dv-tx3904tmr.c file.  If a GCC 4.0+ compiler
  is used it complains about the "default" label in a switch statement
  being immediately followed by a closing brace.  Adding a break
  statement resolves this problem.

Cheers
  Nick

sim/mips/ChangeLog
2006-04-18  Nick Clifton  <nickc@redhat.com>

	* dv-tx3904tmr.c (deliver_tx3904tmr_tick): Add missing break
	statement.

Index: sim/mips/dv-tx3904tmr.c
===================================================================
RCS file: /cvs/src/src/sim/mips/dv-tx3904tmr.c,v
retrieving revision 1.1.1.1
diff -c -3 -p -r1.1.1.1 dv-tx3904tmr.c
*** sim/mips/dv-tx3904tmr.c	16 Apr 1999 01:35:06 -0000	1.1.1.1
--- sim/mips/dv-tx3904tmr.c	18 Apr 2006 09:11:42 -0000
*************** deliver_tx3904tmr_tick (struct hw *me,
*** 675,680 ****
--- 675,681 ----
  
  	case 3: /* disabled */
  	default:
+ 	  break;
  	}
  
        /* update counter and report */
  


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