Re: How to enable all warnings of all warnings of GCCs?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Dec 1, 2007 3:57 AM, J.C. Pizarro <jcpiza@xxxxxxxxx> 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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux