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]

[PATCH] sim: bfin: fix unused bfrom handling for BF535


machs.c: In function 'bfin_model_cpu_init':
machs.c:1657:1: warning: 'bfrom' may be used uninitialized
	in this function [-Wuninitialized]

Committed.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>

2012-04-01  Mike Frysinger  <vapier@gentoo.org>

	* machs.c (bfin_model_map_bfrom): Return when mnum is 535.
---
 sim/bfin/machs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sim/bfin/machs.c b/sim/bfin/machs.c
index 9e27520..0f9d65b 100644
--- a/sim/bfin/machs.c
+++ b/sim/bfin/machs.c
@@ -1624,7 +1624,7 @@ bfin_model_map_bfrom (SIM_DESC sd, SIM_CPU *cpu)
   else if (mnum >= 531 && mnum <= 533)
     bfrom = bf533_roms;
   else if (mnum == 535)
-    /* Stub.  */;
+    return; /* Stub.  */
   else if (mnum >= 534 && mnum <= 537)
     bfrom = bf537_roms;
   else if (mnum >= 538 && mnum <= 539)
-- 
1.7.8.5


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