This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: unused parameter warnings
- To: Jim Blandy <jimb at cygnus dot com>
- Subject: Re: unused parameter warnings
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Wed, 29 Mar 2000 07:57:56 +1000
- CC: gdb at sourceware dot cygnus dot com
- Organization: Cygnus Solutions
- References: <200003281907.OAA14473@zwingli.cygnus.com>
Jim Blandy wrote:
>
Jim, just FYI,
GDB currently set -Wunused for the reason you've explained (it is also
why I've been picking at a -Wno-unused-param flag). gdb/configure.in
doesn't enable it. The reason you're seeing those warnings is because
the top level src/Makefile.in sets:
CFLAGS="-g -Wall -O2"
overriding any local default.
Having the top level Makefile.in ``impose'' a specific -W policy is
something to discuss with the other projects.
enjoy
Andrew