This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [regressions in GCC/libjava testsuite] Re: Patch to make bfd compile with -Wc++-compat
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: Martin Thuresson <martin at mtme dot org>
- Cc: Matthias Klose <doko at ubuntu dot com>, Nick Clifton <nickc at redhat dot com>, binutils <binutils at sourceware dot org>, Tristan Gingold <gingold at adacore dot com>, GCC Java <java at gcc dot gnu dot org>
- Date: Thu, 01 Oct 2009 01:48:52 +0100
- Subject: Re: [regressions in GCC/libjava testsuite] Re: Patch to make bfd compile with -Wc++-compat
- References: <624836f10909071812q358c0ff8p34ce468ccadb50@mail.gmail.com> <m3pra1w0t9.fsf@google.com> <624836f10909082138h1e14eb14j76d08ba0e4d76d0a@mail.gmail.com> <624836f10909082308p349131c5l103efc029e9e26e0@mail.gmail.com> <4AA820CB.3030403@redhat.com> <4AC3E34D.3080708@ubuntu.com> <4AC3E875.1010007@ubuntu.com> <20090930234835.GC18973@bubble.grove.modra.org> <20091001000428.GD18973@bubble.grove.modra.org> <624836f10909301720u26dcf05eu684b54edd3315fd9@mail.gmail.com>
Martin Thuresson wrote:
> + void *minisyms = &syms;
> - symcount = bfd_read_minisymbols (abfd, FALSE, (void *) &syms, &size);
> + symcount = bfd_read_minisymbols (abfd, FALSE, &minisyms, &size);
You have effectively replaced &syms by &&syms in what you pass to
bfd_read_minisymbols.
cheers,
DaveK