diff options
author | Spencer Oliver <spen@spen-soft.co.uk> | 2012-04-27 14:28:51 +0100 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2012-05-04 08:15:40 +0000 |
commit | 908ee4dc9641bd3df2eb00264575501867da539d (patch) | |
tree | 7da3e7c2ae5ad632576ee55ddc4739a452efd4f0 /src/rtos | |
parent | 85735925c7aa593958d86b92d6cf58cc32d61e73 (diff) | |
download | riscv-openocd-908ee4dc9641bd3df2eb00264575501867da539d.zip riscv-openocd-908ee4dc9641bd3df2eb00264575501867da539d.tar.gz riscv-openocd-908ee4dc9641bd3df2eb00264575501867da539d.tar.bz2 |
build: remove clang unused variable assignment warnings
Change-Id: Ibe5254704d6cd879a318a82c4f50d9da3c14276c
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/600
Tested-by: jenkins
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
Diffstat (limited to 'src/rtos')
-rw-r--r-- | src/rtos/linux.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rtos/linux.c b/src/rtos/linux.c index 198f66e..cd7ae04 100644 --- a/src/rtos/linux.c +++ b/src/rtos/linux.c @@ -302,7 +302,7 @@ static int linux_os_thread_reg_list(struct rtos *rtos, hex_string += sprintf(hex_string, "%02x", 0); uint32_t cpsr = 0x00000000; - hex_string = reg_converter(hex_string, &cpsr, 4); + reg_converter(hex_string, &cpsr, 4); } } return ERROR_OK; @@ -769,12 +769,12 @@ int linux_get_tasks(struct target *target, int context) struct threads *last = NULL; t->base_addr = linux_os->init_task_addr; /* retrieve the thread id , currently running in the different smp core */ - retval = get_current(target, 1); + get_current(target, 1); while (((t->base_addr != linux_os->init_task_addr) && (t->base_addr != 0)) || (loop == 0)) { loop++; - retval = fill_task(target, t); + fill_task(target, t); retval = get_name(target, t); if (loop > MAX_THREADS) { @@ -1214,7 +1214,7 @@ int linux_thread_extra_info(struct target *target, tmp_str_ptr += sprintf(tmp_str_ptr, "%d", (int)temp->pid); tmp_str_ptr += sprintf(tmp_str_ptr, "%s", " | "); - tmp_str_ptr += sprintf(tmp_str_ptr, "%s", name); + sprintf(tmp_str_ptr, "%s", name); sprintf(tmp_str_ptr, "%s", temp->name); char *hex_str = (char *)calloc(1, strlen(tmp_str) * 2 + 1); |