This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Add missing break to switch statement in dv-tx3904tmr.c
- From: Nick Clifton <nickc at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Tue, 18 Apr 2006 10:19:10 +0100
- Subject: 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 */