]> git.sur5r.net Git - openocd/commitdiff
build: remove clang unused variable increments warnings
authorSpencer Oliver <spen@spen-soft.co.uk>
Fri, 27 Apr 2012 13:00:46 +0000 (14:00 +0100)
committerSpencer Oliver <spen@spen-soft.co.uk>
Fri, 4 May 2012 08:15:30 +0000 (08:15 +0000)
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>
src/flash/nor/at91sam3.c
src/flash/nor/at91sam4.c
src/rtos/linux.c

index 37b6dd78b3a2d074abb88d180b0e7f84c3eb0d12..aff66dfab4ee4a446217bd858be5e798f286d6d1 100644 (file)
@@ -3274,7 +3274,6 @@ static int sam3_write(struct flash_bank *bank,
                r = sam3_page_write(pPrivate, page_cur, pagebuffer);
                if (r != ERROR_OK)
                        goto done;
-               buffer += count;
        }
        LOG_DEBUG("Done!");
        r = ERROR_OK;
index 4bc511c2aa6e8b6bccbbcfb75cda0de631bdc1d4..00a54fe1fb2be05184f2ab72233d05d48827a872 100644 (file)
@@ -2066,7 +2066,6 @@ static int sam4_write(struct flash_bank *bank,
                r = sam4_page_write(pPrivate, page_cur, pagebuffer);
                if (r != ERROR_OK)
                        goto done;
-               buffer += count;
        }
        LOG_DEBUG("Done!");
        r = ERROR_OK;
index e249ff49e96217f53816de3ea73a0ff32ae188ce..198f66e03c42a9b435a41dfbaec7dd74aa67c0d1 100644 (file)
@@ -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);