diff options
author | Alan Modra <amodra@bigpond.net.au> | 2009-10-18 23:14:09 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2009-10-18 23:14:09 +0000 |
commit | 92cb50495953dd6efaf69c57b69405d82dfc43b3 (patch) | |
tree | 97a9f3322ea4a565c83df32b8aa1fe02a8bfb990 | |
parent | c1b989dea9b43ea959e9f9cd34f276d1214e5a3c (diff) | |
download | binutils-redhat-92cb50495953dd6efaf69c57b69405d82dfc43b3.tar.gz |
PR binutils/10793
* prdbg.c (tg_end_struct_type): Warning fix.
-rw-r--r-- | binutils/ChangeLog | 3 | ||||
-rw-r--r-- | binutils/prdbg.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index d09915990e..ed33155c30 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,5 +1,8 @@ 2009-10-19 Jerker Bäck <jerker.back@gmail.com> + PR binutils/10793 + * prdbg.c (tg_end_struct_type): Warning fix. + PR binutils/10792 * dlltool.c (dll_name_list_append): Declare variable at start of block. diff --git a/binutils/prdbg.c b/binutils/prdbg.c index 579215a668..59313bb82a 100644 --- a/binutils/prdbg.c +++ b/binutils/prdbg.c @@ -2088,8 +2088,7 @@ tg_struct_field (void *p, const char *name, bfd_vma bitpos ATTRIBUTE_UNUSED, static bfd_boolean tg_end_struct_type (void *p ATTRIBUTE_UNUSED) { - struct pr_handle *info = (struct pr_handle *) p; - assert (info->stack != NULL); + assert (((struct pr_handle *) p)->stack != NULL); return TRUE; } |