mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-18 12:24:38 +08:00
Avoid "operation may be undefined" warning in remote.c
GCC 4.1 gives the following warning: gdb/remote.c: In function 'remote_parse_stop_reply': gdb/remote.c:6549: warning: operation on 'p' may be undefined on this line of code: event->ptid = read_ptid (++p, &p); Since p actually isn't used afterwards anyway, simply use NULL. gdb/ * remote.c (remote_parse_stop_reply): Avoid GCC 4.1 "operation may be undefined" warning.
This commit is contained in:
parent
2e3b657e3a
commit
974eac9d76
@ -1,3 +1,8 @@
|
||||
2015-12-01 Ulrich Weigand <uweigand@de.ibm.com>
|
||||
|
||||
* remote.c (remote_parse_stop_reply): Avoid GCC 4.1 "operation
|
||||
may be undefined" warning.
|
||||
|
||||
2015-12-01 Ulrich Weigand <uweigand@de.ibm.com>
|
||||
|
||||
* remote.c (remote_newthread_step): Initialize item.name.
|
||||
|
@ -6548,7 +6548,7 @@ Packet: '%s'\n"),
|
||||
event->ws.value.integer = value;
|
||||
if (*p != ';')
|
||||
error (_("stop reply packet badly formatted: %s"), buf);
|
||||
event->ptid = read_ptid (++p, &p);
|
||||
event->ptid = read_ptid (++p, NULL);
|
||||
break;
|
||||
}
|
||||
case 'W': /* Target exited. */
|
||||
|
Loading…
Reference in New Issue
Block a user