diff options
author | Freddie Chopin <freddie_chopin@op.pl> | 2011-06-03 22:10:03 +0200 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2011-06-04 09:35:13 +0200 |
commit | f6315d5e5b7b71515ef051711e5f818a42d6b3b3 (patch) | |
tree | 197f51e416132298d9c2571163e2be72e735c115 /src/rtos | |
parent | ae02a0e51708d292b4dff67c12baef1b62b367fa (diff) | |
download | openocd_libswd-f6315d5e5b7b71515ef051711e5f818a42d6b3b3.tar.gz openocd_libswd-f6315d5e5b7b71515ef051711e5f818a42d6b3b3.tar.bz2 openocd_libswd-f6315d5e5b7b71515ef051711e5f818a42d6b3b3.tar.xz openocd_libswd-f6315d5e5b7b71515ef051711e5f818a42d6b3b3.zip |
Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - trivial fixes
Diffstat (limited to 'src/rtos')
-rw-r--r-- | src/rtos/rtos.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rtos/rtos.c b/src/rtos/rtos.c index 818a9793..263795c6 100644 --- a/src/rtos/rtos.c +++ b/src/rtos/rtos.c @@ -314,15 +314,14 @@ int gdb_thread_packet(struct connection *connection, struct target *target, char int symbol_num; char* found = strstr( packet, "qSymbol::" ); - int numconv; if (0 == found ) { - numconv =sscanf(packet, "qSymbol:%" SCNx64 ":%s", &value, hex_name_str); + sscanf(packet, "qSymbol:%" SCNx64 ":%s", &value, hex_name_str); } else { // No value returned by GDB - symbol was not found - numconv =sscanf(packet, "qSymbol::%s", hex_name_str); + sscanf(packet, "qSymbol::%s", hex_name_str); } name_str = (char*) malloc( 1+ strlen(hex_name_str) / 2 ); |