This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: -Wall -Wno-unused-param
- To: Michael Meissner <meissner at cygnus dot com>
- Subject: Re: -Wall -Wno-unused-param
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Fri, 24 Mar 2000 12:13:06 +1100
- CC: GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Organization: Cygnus Solutions
- References: <38D9A096.E4FFC223@cygnus.com> <20000323132841.28903@cse.cygnus.com>
Michael Meissner wrote:
>
> On Thu, Mar 23, 2000 at 03:41:58PM +1100, Andrew Cagney wrote:
> > Just FYI,
> >
> > I'm going through the final steps of having GCC accept the above. This
> > means that GDB doesn't need to bother with the ATTRIBUTE_UNUSED guff :-)
>
> Note, this assumes you are using the latest (and greatest?) compiler. I would
> be surprised if there is an official release of the FSF compiler before
> October, since we are not currently in a release freeze cycle, and just got a
> new release manager. If you put in ATTRIBUTE_UNUSED it will work whether or
> not you use an old compiler or a new one.
True. GDB's configury will need to be updated to check that GCC supports
the flags.
With regard to ATTRIBUTE_UNUSED, GDB is sitting at a cross road where
people could either go through and add that everywhere or just require
people to use a state-of-the-art compiler to check for warnings. I like
the latter, its easier overall :-)
Andrew