summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-11-03 07:22:14 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-11-03 07:22:14 +0000
commit199ebae564fb0701e5bf9ad1e9bb07c668cd998f (patch)
tree172421e860851aca4d65588a2e63874dbec7e720 /src
parent9f58ef3a581ff850b1c9c248e7dc30f472fc4df1 (diff)
downloadopenocd_libswd-199ebae564fb0701e5bf9ad1e9bb07c668cd998f.tar.gz
openocd_libswd-199ebae564fb0701e5bf9ad1e9bb07c668cd998f.tar.bz2
openocd_libswd-199ebae564fb0701e5bf9ad1e9bb07c668cd998f.tar.xz
openocd_libswd-199ebae564fb0701e5bf9ad1e9bb07c668cd998f.zip
Rick Altherr <kc8apf@kc8apf.net> - fix warnings
git-svn-id: svn://svn.berlios.de/openocd/trunk@1126 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r--src/flash/flash.c2
-rw-r--r--src/helper/command.c2
-rw-r--r--src/helper/jim-eventloop.c4
-rw-r--r--src/helper/jim-eventloop.h2
-rw-r--r--src/target/target.c4
5 files changed, 7 insertions, 7 deletions
diff --git a/src/flash/flash.c b/src/flash/flash.c
index 6d47334b..4df585bb 100644
--- a/src/flash/flash.c
+++ b/src/flash/flash.c
@@ -1178,7 +1178,7 @@ int default_flash_blank_check(struct flash_bank_s *bank)
int i;
int retval;
int fast_check = 0;
- int blank;
+ u32 blank;
if (bank->target->state != TARGET_HALTED)
{
diff --git a/src/helper/command.c b/src/helper/command.c
index a8de14ee..d47203ca 100644
--- a/src/helper/command.c
+++ b/src/helper/command.c
@@ -653,7 +653,7 @@ static int jim_capture(Jim_Interp *interp, int argc, Jim_Obj *const *argv)
command_context_t* command_init()
{
command_context_t* context = malloc(sizeof(command_context_t));
- extern unsigned const char startup_tcl[];
+ extern const char startup_tcl[];
context->mode = COMMAND_EXEC;
context->commands = NULL;
diff --git a/src/helper/jim-eventloop.c b/src/helper/jim-eventloop.c
index 7efd6763..62513704 100644
--- a/src/helper/jim-eventloop.c
+++ b/src/helper/jim-eventloop.c
@@ -524,9 +524,7 @@ static int JimELAfterCommand(Jim_Interp *interp, int argc,
/* This extension is not dynamically loaded, instead it's linked statically,
which is why we shouldn't use the unspecific 'Jim_OnLoad' name */
-#define Jim_OnLoad Jim_EventLoopOnLoad
-
-int Jim_OnLoad(Jim_Interp *interp)
+int Jim_EventLoopOnLoad(Jim_Interp *interp)
{
Jim_EventLoop *eventLoop;
diff --git a/src/helper/jim-eventloop.h b/src/helper/jim-eventloop.h
index 186190fd..14887ac0 100644
--- a/src/helper/jim-eventloop.h
+++ b/src/helper/jim-eventloop.h
@@ -66,6 +66,8 @@ typedef void Jim_EventFinalizerProc(Jim_Interp *interp, void *clientData);
#define JIM_API(x) x
#define JIM_STATIC
+JIM_STATIC int Jim_EventLoopOnLoad(Jim_Interp *interp);
+
/* --- POSIX version of Jim_ProcessEvents, for now the only available --- */
#define JIM_FILE_EVENTS 1
#define JIM_TIME_EVENTS 2
diff --git a/src/target/target.c b/src/target/target.c
index b9d19293..d0936d99 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -2636,7 +2636,7 @@ static int target_mem2array(Jim_Interp *interp, target_t *target, int argc, Jim_
{
long l;
u32 width;
- u32 len;
+ int len;
u32 addr;
u32 count;
u32 v;
@@ -2818,7 +2818,7 @@ static int target_array2mem(Jim_Interp *interp, target_t *target, int argc, Jim_
{
long l;
u32 width;
- u32 len;
+ int len;
u32 addr;
u32 count;
u32 v;