diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2018-09-10 17:11:01 +0100 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2018-09-10 17:11:46 +0100 |
commit | 8ec235834d454a66a89fe16bc62e11497eb79078 (patch) | |
tree | 9f52aaf8889738d8980e74c51994e58690d835e5 /gdb/record-btrace.c | |
parent | 1f5d1570c0eaadbb72d450211f70b24c4c23ac8e (diff) | |
download | binutils-8ec235834d454a66a89fe16bc62e11497eb79078.zip binutils-8ec235834d454a66a89fe16bc62e11497eb79078.tar.gz binutils-8ec235834d454a66a89fe16bc62e11497eb79078.tar.bz2 |
Remove unused variable in record-btrace.c
old_inferior_ptid is unused, this is caught by a gcc built from git
recently, not sure about previous versions:
/home/emaisin/src/binutils-gdb/gdb/record-btrace.c: In function ‘frame_info* get_thread_current_frame(thread_info*)’:
/home/emaisin/src/binutils-gdb/gdb/record-btrace.c:1974:10: error: unused variable ‘old_inferior_ptid’ [-Werror=unused-variable]
1974 | ptid_t old_inferior_ptid;
| ^~~~~~~~~~~~~~~~~
gdb/ChangeLog:
* record-btrace.c (get_thread_current_frame): Remove
old_inferior_ptid.
Diffstat (limited to 'gdb/record-btrace.c')
-rw-r--r-- | gdb/record-btrace.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gdb/record-btrace.c b/gdb/record-btrace.c index eafecd9..8f1346e 100644 --- a/gdb/record-btrace.c +++ b/gdb/record-btrace.c @@ -1971,7 +1971,6 @@ static struct frame_info * get_thread_current_frame (struct thread_info *tp) { struct frame_info *frame; - ptid_t old_inferior_ptid; int executing; /* Set current thread, which is implicitly used by |