public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* How to enable all warnings of all warnings of GCCs?
@ 2007-12-01  9:57 J.C. Pizarro
  2007-12-01 12:38 ` Tom Browder
  2007-12-01 20:46 ` John (Eljay) Love-Jensen
  0 siblings, 2 replies; 3+ messages in thread
From: J.C. Pizarro @ 2007-12-01  9:57 UTC (permalink / raw)
  To: gcc-help

-Wall doesn't enable all warnings.

How to enable all warnings of all warnings of GCCs?

   J.C.Pizarro

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

* Re: How to enable all warnings of all warnings of GCCs?
  2007-12-01  9:57 How to enable all warnings of all warnings of GCCs? J.C. Pizarro
@ 2007-12-01 12:38 ` Tom Browder
  2007-12-01 20:46 ` John (Eljay) Love-Jensen
  1 sibling, 0 replies; 3+ messages in thread
From: Tom Browder @ 2007-12-01 12:38 UTC (permalink / raw)
  To: J.C. Pizarro; +Cc: gcc-help

On Dec 1, 2007 3:57 AM, J.C. Pizarro <jcpiza@gmail.com> wrote:
> -Wall doesn't enable all warnings.
>
> How to enable all warnings of all warnings of GCCs?

As far as I know, the only way to do it is add them all to the command
line.  I've made a file I call Makefile.warnings which I 'include' in
my main Makefile.  In it I define WARNINGS like so:

WARNINGS  = -Wall
WARNINGS += -Wconversion
(etc.)

Then, in Makefile I will do something like:

g++ [options...] [sources...] $(WARNINGS)

I can individually eliminate unneeded warnings by commenting them out
in Makefile.warnings.

-Tom

Tom Browder
Niceville, Florida
USA

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

* RE: How to enable all warnings of all warnings of GCCs?
  2007-12-01  9:57 How to enable all warnings of all warnings of GCCs? J.C. Pizarro
  2007-12-01 12:38 ` Tom Browder
@ 2007-12-01 20:46 ` John (Eljay) Love-Jensen
  1 sibling, 0 replies; 3+ messages in thread
From: John (Eljay) Love-Jensen @ 2007-12-01 20:46 UTC (permalink / raw)
  To: J.C. Pizarro, gcc-help

Hi J.C.,

I use a trick similar in spirit to Tom's.

I made a bash shell script called w++ which does:

g++ \
-Wall \
-Wextra \
-Wyadayadayada \
... \
"$@"

That enables all the warnings for me (some of which I've decided are uninteresting, and then I disabled them).

I which there was a -WALL or -Wall-and-when-I-say-all-I-really-mean-all flag.

Sincerely,
--Eljay

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

end of thread, other threads:[~2007-12-01 20:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-01  9:57 How to enable all warnings of all warnings of GCCs? J.C. Pizarro
2007-12-01 12:38 ` Tom Browder
2007-12-01 20:46 ` John (Eljay) Love-Jensen

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).