Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - trivial fixes
This commit is contained in:
committed by
Øyvind Harboe
parent
ae02a0e517
commit
f6315d5e5b
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user