From 789d24f07f3338bb10200d68568859280dc6f537 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Wed, 5 May 2010 19:53:54 +0000 Subject: [PATCH] 2010-05-05 Michael Snyder * corelow.c (core_xfer_partial): Delete unused variables. --- gdb/ChangeLog | 2 ++ gdb/corelow.c | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2eb4d235672..274687434da 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ 2010-05-05 Michael Snyder + * corelow.c (core_xfer_partial): Delete unused variables. + * solib-svr4.c (find_program_interpreter): Delete unused variable. (svr4_solib_create_inferior_hook): Add ifdef around conditionally-used variable declarations. diff --git a/gdb/corelow.c b/gdb/corelow.c index ead2377e89e..0bbe48129f0 100644 --- a/gdb/corelow.c +++ b/gdb/corelow.c @@ -690,7 +690,6 @@ core_xfer_partial (struct target_ops *ops, enum target_object object, struct bfd_section *section; bfd_size_type size; - char *contents; section = bfd_get_section_by_name (core_bfd, ".auxv"); if (section == NULL) @@ -722,7 +721,6 @@ core_xfer_partial (struct target_ops *ops, enum target_object object, struct bfd_section *section; bfd_size_type size; - char *contents; section = bfd_get_section_by_name (core_bfd, ".wcookie"); if (section == NULL) @@ -766,7 +764,6 @@ core_xfer_partial (struct target_ops *ops, enum target_object object, struct bfd_section *section; bfd_size_type size; - char *contents; char sectionstr[100]; xsnprintf (sectionstr, sizeof sectionstr, "SPU/%s", annex); -- 2.30.2