This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: fix compilation error under gcc 3.2.3 (warning treated as error)
- From: Daniel Jacobowitz <drow at false dot org>
- To: Yakov Lerner <iler dot ml at gmail dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 14 Feb 2008 11:48:17 -0500
- Subject: Re: fix compilation error under gcc 3.2.3 (warning treated as error)
- References: <f36b08ee0802132337p2a1e7992i535cb3ac80f32c4b@mail.gmail.com>
On Thu, Feb 14, 2008 at 09:37:26AM +0200, Yakov Lerner wrote:
> Fix "duplicate const" compilation error (warning treated as error)
> under gcc 3.2.3 (AS3 Linux, gcc version 3.2.3 20030502 (Red Hat Linux
> 3.2.3-20)).
>
> Typedef for reloc_howto_type already has const, remove
> unnecessary const at line 1174 bfd/elf32-i386.c
Your patch adds const, not removes it - I think you diffed files in
the wrong order.
Also, this change is already in GDB HEAD. It's helpful if you can
work from HEAD if you submit patches, or at least say what version
you were working from.
--
Daniel Jacobowitz
CodeSourcery