summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2009-11-05 09:02:06 +0100
committerØyvind Harboe <oyvind.harboe@zylin.com>2009-11-05 09:03:24 +0100
commita5e396b9641c425225e3820a160ee66887416d71 (patch)
tree1ab6d760d25740fbe4fb58b70165dc64476bba79
parent2d9863e121ff0c02b33f1b8a3e74fae55d901fa6 (diff)
downloadopenocd+libswd-a5e396b9641c425225e3820a160ee66887416d71.tar.gz
openocd+libswd-a5e396b9641c425225e3820a160ee66887416d71.tar.bz2
openocd+libswd-a5e396b9641c425225e3820a160ee66887416d71.tar.xz
openocd+libswd-a5e396b9641c425225e3820a160ee66887416d71.zip
warnings: remove
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
-rw-r--r--src/ecosboard.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ecosboard.c b/src/ecosboard.c
index bad5fd58..b0f9525a 100644
--- a/src/ecosboard.c
+++ b/src/ecosboard.c
@@ -474,7 +474,6 @@ static int zylinjtag_Jim_Command_reboot(Jim_Interp *interp, int argc,
return JIM_OK;
}
-
static void zylinjtag_startNetwork(void)
{
// Bring TCP/IP up immediately before we're ready to accept commands.
@@ -591,6 +590,7 @@ static void print_exception_handler(cyg_addrword_t data, cyg_code_t exception,
}
+#ifdef CYGNUM_HAL_VECTOR_UNDEF_INSTRUCTION
static void setHandler(cyg_code_t exception)
{
cyg_exception_handler_t *old_handler;
@@ -599,6 +599,7 @@ static void setHandler(cyg_code_t exception)
cyg_exception_set_handler(exception, print_exception_handler, 0,
&old_handler, &old_data);
}
+#endif
static cyg_thread zylinjtag_uart_thread_object;
static cyg_handle_t zylinjtag_uart_thread_handle;
@@ -748,7 +749,6 @@ static void zylinjtag_uart(cyg_addrword_t data)
pos2 = 0;
}
- size_t x = actual2;
size_t y = 0;
if (actual2 > 0)
{
@@ -778,7 +778,6 @@ static void zylinjtag_uart(cyg_addrword_t data)
actual += t;
}
- int x2 = actual;
int y2 = 0;
if (actual > 0)
{