build: remove warn_unused_result errors
Remove any build errors for strtol when building release version of openocd. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
This commit is contained in:
parent
ebe431879d
commit
6229e438dd
|
@ -2410,7 +2410,7 @@ static int gdb_target_add_one(struct target *target)
|
||||||
* then we increment the port number for the next target.
|
* then we increment the port number for the next target.
|
||||||
*/
|
*/
|
||||||
char *end;
|
char *end;
|
||||||
strtol(gdb_port_next, &end, 0);
|
portnumber = strtol(gdb_port_next, &end, 0);
|
||||||
if (!*end)
|
if (!*end)
|
||||||
{
|
{
|
||||||
if (parse_long(gdb_port_next, &portnumber) == ERROR_OK)
|
if (parse_long(gdb_port_next, &portnumber) == ERROR_OK)
|
||||||
|
|
|
@ -200,7 +200,7 @@ int add_service(char *name, const char *port, int max_connections, new_connectio
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
char *end;
|
char *end;
|
||||||
strtol(c->port, &end, 0);
|
portnumber = strtol(c->port, &end, 0);
|
||||||
if (!*end && (parse_long(c->port, &portnumber) == ERROR_OK))
|
if (!*end && (parse_long(c->port, &portnumber) == ERROR_OK))
|
||||||
{
|
{
|
||||||
c->portnumber = portnumber;
|
c->portnumber = portnumber;
|
||||||
|
|
Loading…
Reference in New Issue