[PATCH 2/2] Remove unused variable in windows-nat.c

Pedro Alves palves@redhat.com
Thu Jul 21 11:38:00 GMT 2016


Leave the call for side effects.

gdb/ChangeLog:
yyyy-mm-dd  Pedro Alves  <palves@redhat.com>

	* windows-nat.c (handle_exception): Remove "th".
---
 gdb/windows-nat.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index 149403a..c95dc9a 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -1014,13 +1014,12 @@ display_selectors (char * args, int from_tty)
 static int
 handle_exception (struct target_waitstatus *ourstatus)
 {
-  windows_thread_info *th;
   DWORD code = current_event.u.Exception.ExceptionRecord.ExceptionCode;
 
   ourstatus->kind = TARGET_WAITKIND_STOPPED;
 
   /* Record the context of the current thread.  */
-  th = thread_rec (current_event.dwThreadId, -1);
+  thread_rec (current_event.dwThreadId, -1);
 
   switch (code)
     {
-- 
2.5.5



More information about the Gdb-patches mailing list