From f6315d5e5b7b71515ef051711e5f818a42d6b3b3 Mon Sep 17 00:00:00 2001 From: Freddie Chopin Date: Fri, 3 Jun 2011 22:10:03 +0200 Subject: Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - trivial fixes --- src/rtos/rtos.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/rtos') 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 ); -- cgit v1.2.3