public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* suggested compile warnings
@ 2003-05-23 19:09 Theodore A. Roth
  2003-05-23 20:17 ` Andrew Cagney
  0 siblings, 1 reply; 5+ messages in thread
From: Theodore A. Roth @ 2003-05-23 19:09 UTC (permalink / raw)
  To: gdb

Hi,

I've always been configuring gdb with --enable-gdb-build-warnings=-Werror
and thought that there where a bunch of gcc compile warnings issued.
Looking more closely at my builds, that doesn't seem to be true.

For my own apps, I like to use '-Wall -Werror' as it lets the compiler
catch a lot of my stupid mistakes. I tried '-Wall -Werror' for gdb,
but that seems to be too restrictive for gdb source.

Does anyone else compile gdb with any of the -W<foo> gcc options?
Is there a recommended list of these which should be used?

For example, adding -Wunused (without -Werror), turns up 149 wanrings.
Most are unused variables, some are static decl's for functions that
aren't defined. Most if not all of these should be trivial to fix.

Ted Roth

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-05-23 21:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-23 19:09 suggested compile warnings Theodore A. Roth
2003-05-23 20:17 ` Andrew Cagney
2003-05-23 21:02   ` Theodore A. Roth
2003-05-23 21:17   ` David Carlton
2003-05-23 21:46     ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).