aboutsummaryrefslogtreecommitdiff
path: root/src/rtos
diff options
context:
space:
mode:
authorSpencer Oliver <spen@spen-soft.co.uk>2012-04-27 14:00:46 +0100
committerSpencer Oliver <spen@spen-soft.co.uk>2012-05-04 08:15:30 +0000
commit85735925c7aa593958d86b92d6cf58cc32d61e73 (patch)
tree1eed2b170282a500aeae93bd1c9980d946c04c82 /src/rtos
parentee38fff78bf0572f6dcef94b11aa562b29b09125 (diff)
downloadriscv-openocd-85735925c7aa593958d86b92d6cf58cc32d61e73.zip
riscv-openocd-85735925c7aa593958d86b92d6cf58cc32d61e73.tar.gz
riscv-openocd-85735925c7aa593958d86b92d6cf58cc32d61e73.tar.bz2
build: remove clang unused variable increments warnings
Change-Id: Ib755474aa46f7233495fae1947bc27cd0b2d6b4f Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/599 Tested-by: jenkins Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
Diffstat (limited to 'src/rtos')
-rw-r--r--src/rtos/linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rtos/linux.c b/src/rtos/linux.c
index e249ff4..198f66e 100644
--- a/src/rtos/linux.c
+++ b/src/rtos/linux.c
@@ -1215,7 +1215,7 @@ int linux_thread_extra_info(struct target *target,
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);
- tmp_str_ptr += sprintf(tmp_str_ptr, "%s", temp->name);
+ sprintf(tmp_str_ptr, "%s", temp->name);
char *hex_str =
(char *)calloc(1, strlen(tmp_str) * 2 + 1);
str_to_hex(hex_str, tmp_str);