Browse Source

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>
tags/v0.6.0-rc1
Spencer Oliver 12 years ago
parent
commit
85735925c7
3 changed files with 1 additions and 3 deletions
  1. +0
    -1
      src/flash/nor/at91sam3.c
  2. +0
    -1
      src/flash/nor/at91sam4.c
  3. +1
    -1
      src/rtos/linux.c

+ 0
- 1
src/flash/nor/at91sam3.c View 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;


+ 0
- 1
src/flash/nor/at91sam4.c View 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;


+ 1
- 1
src/rtos/linux.c View 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);


Loading…
Cancel
Save