Avoid "operation may be undefined" warning in remote.c
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 1 Dec 2015 17:04:39 +0000 (18:04 +0100)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 1 Dec 2015 17:04:39 +0000 (18:04 +0100)
commit974eac9d7694ca14dcdf6d1a74777a265fffdb95
tree3e8196d7408a808419d323cb9aabacddfa5055fe
parent2e3b657e3a811087533cec33307eb8bbf454cd1c
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.
gdb/ChangeLog
gdb/remote.c