cvs commit: ALFS/nALFS bootstrap.Makefile

Neven Has haski at sezampro.yu
Thu Nov 6 14:21:48 PST 2003


On Thu, Nov 06, 2003 at 11:00:52AM -0700, kpfleming at linuxfromscratch.org wrote:
>   add Neven's preferred list of gcc warning settings to Makefile.am,
>   automatically used if --enable-maintainer-mode is specified when
>   configure is run
>   
>   Revision  Changes    Path
>   1.6       +8 -1      ALFS/nALFS/bootstrap.Makefile
>   
>   Index: bootstrap.Makefile
>   ===================================================================
>   RCS file: /home/cvsroot/ALFS/nALFS/bootstrap.Makefile,v
>   retrieving revision 1.5
>   retrieving revision 1.6
>   diff -u -r1.5 -r1.6
>   --- bootstrap.Makefile	4 Nov 2003 19:03:08 -0000	1.5
>   +++ bootstrap.Makefile	6 Nov 2003 18:00:52 -0000	1.6
>   @@ -25,7 +25,14 @@
>    endif
>    
>    AM_CPPFLAGS = -I$(srcdir)/src/include -I$(srcdir)/src
>   -AM_CFLAGS = -W -Wall -Wshadow -Winline
>   +if MAINTAINER_MODE
>   +AM_CFLAGS = -W -Wall -Wshadow -Winline -Wundef -Wnested-externs
>   +AM_CFLAGS += -Wredundant-decls -Wcast-align -Wstrict-prototypes
>   +AM_CFLAGS += -Wmissing-prototypes -Wmissing-declarations -Wbad-function-cast
>   +AM_CFLAGS += -Wpointer-arith -Waggregate-return -std=gnu99 -Wfloat-equal
>   +AM_CFLAGS += -Wendif-labels -Wundef -Wcast-qual -Wsign-compare -Wpacked
>   +AM_CFLAGS += -Wdisabled-optimization
>   +endif

Just for the record (if this is mentioned in Hacker's guide), some of
these are not available on the older compilers.

Personally, I use a script for configuring nALFS and an option "new"
that when specified enables all of the above and when not, just a
common set of warnings.

But this is OK, whoever uses --enable-maintainer-mode knows what he's
doing anyway.

(BTW, I'll put the old AM_CFLAGS as default.)


Neven




More information about the alfs-log mailing list