[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openocd-development
Subject:    [OpenOCD-devel] [PATCH]: 06c1883 build: remove clang unused variable increments warnings
From:       gerrit () openocd ! zylin ! com
Date:       2012-04-27 13:06:23
Message-ID: 20120427130623.403AB242E1 () openocd ! zylin ! com
[Download RAW message or body]

This is an automated email from Gerrit.

Spencer Oliver (spen@spen-soft.co.uk) just uploaded a new patch set to Gerrit, which \
you can find at http://openocd.zylin.com/599

-- gerrit

commit 06c18838d2911cadf3650420823f166e5004c04d
Author: Spencer Oliver <spen@spen-soft.co.uk>
Date:   Fri Apr 27 14:00:46 2012 +0100

    build: remove clang unused variable increments warnings
    
    Change-Id: Ib755474aa46f7233495fae1947bc27cd0b2d6b4f
    Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>

diff --git a/src/flash/nor/at91sam3.c b/src/flash/nor/at91sam3.c
index 37b6dd7..aff66df 100644
--- a/src/flash/nor/at91sam3.c
+++ b/src/flash/nor/at91sam3.c
@@ -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;
diff --git a/src/flash/nor/at91sam4.c b/src/flash/nor/at91sam4.c
index 4bc511c..00a54fe 100644
--- a/src/flash/nor/at91sam4.c
+++ b/src/flash/nor/at91sam4.c
@@ -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;
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);

-- 

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic