This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Remove unused variable in record-btrace.c


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8ec235834d454a66a89fe16bc62e11497eb79078

commit 8ec235834d454a66a89fe16bc62e11497eb79078
Author: Simon Marchi <simon.marchi@ericsson.com>
Date:   Mon Sep 10 17:11:01 2018 +0100

    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.

Diff:
---
 gdb/ChangeLog       | 5 +++++
 gdb/record-btrace.c | 1 -
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 392d77a..4c42126 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2018-09-10  Simon Marchi  <simon.marchi@ericsson.com>
+
+	* record-btrace.c (get_thread_current_frame): Remove
+	old_inferior_ptid.
+
 2018-09-10  Jerome Guitton  <guitton@adacore.com>
 
 	* ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]