unused parameter warnings

Andrew Cagney ac131313@cygnus.com
Tue Mar 28 16:23:00 GMT 2000


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


More information about the Gdb mailing list