From d4cbef22ba406707a4fcb30a7a57308447626f14 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9C?= =?utf8?q?=D0=B0=D1=80=D1=82=D1=8C=D1=8F=D0=BD=D0=BE=D0=B2?= Date: Sun, 17 Mar 2019 12:51:01 +0300 Subject: [PATCH] Remove unused variable from windows_make_so There is unused variable text_vma in function windows_make_so. This leads to build error on Windows using Cygwin. gdb/ChangeLog: 2019-03-17 Vladimir Martyanov PR gdb/24350 * windows-nat.c (windows_make_so): Remove unused text_vma variable. --- gdb/ChangeLog | 5 +++++ gdb/windows-nat.c | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 478ff0a873f..cb7f6b0bf12 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2019-03-17 Vladimir Martyanov + + PR gdb/24350 + * windows-nat.c (windows_make_so): Remove unused text_vma variable. + 2019-03-17 Vladimir Martyanov PR gdb/24351 diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index c8acadd398d..d38ade5855b 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -778,7 +778,6 @@ windows_make_so (const char *name, LPVOID load_addr) if (p >= so->so_name && strcasecmp (p, "/cygwin1.dll") == 0) { asection *text = NULL; - CORE_ADDR text_vma; gdb_bfd_ref_ptr abfd (gdb_bfd_open (so->so_name, "pei-i386", -1)); -- 2.30.2