This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: unused parameter warnings
Andrew Cagney wrote:
>
> 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.
Sorry, that should read ``GDB currently doesn't set -Wunused ...''.
I'd suggest configuring with
CFLAGS=-g ..../configure
Andrew