From: Pedro Alves Date: Thu, 21 Jul 2016 11:23:48 +0000 (+0100) Subject: Remove unused variable in windows-nat.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c25b7ccef4d6d96ed4af1d27c79d78767dba7161;p=binutils-gdb.git Remove unused variable in windows-nat.c Leave the call for side effects. gdb/ChangeLog: 2016-07-21 Pedro Alves * windows-nat.c (handle_exception): Remove "th". --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d074a3de230..5eeec97f8ec 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2016-07-21 Pedro Alves + + * windows-nat.c (handle_exception): Remove "th". + 2016-07-21 Pedro Alves * varobj.c (varobj_value_get_print_value): Move "gdbarch" to block diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 149403ae0c5..c95dc9a3c59 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) {