cvs commit: ALFS/nALFS bootstrap.Makefile bootstrap.configure
Kevin P. Fleming
kpfleming at linuxfromscratch.org
Tue Nov 4 10:22:47 PST 2003
Neven Has wrote:
> On Tue, Nov 04, 2003 at 11:04:13AM -0700, neven at linuxfromscratch.org wrote:
>>neven 03/11/04 11:04:13
>> Modified: nALFS bootstrap.Makefile bootstrap.configure
>> -Wno-unused-function option removed and -w added to ltdl code.
> I'll fix the unused-function warnings in the code and I hopefully
> added -w to the right place? :)
Yes, you did. Leaving it blank would actually work as well, since it
will override any CFLAGS and/or AM_CFLAGS setting in the Makefile (with
CFLAGS having come from the environment at configure time), but
explicitly turning off the warnings is a better idea.
> BTW, what I usually use is:
> -O2 -W -Wall -Wshadow -Winline -Wundef -Wnested-externs
> -Wredundant-decls -Wcast-align -Wstrict-prototypes
> -Wmissing-prototypes -Wmissing-declarations -Wbad-function-cast
> -Wpointer-arith -Waggregate-return -std=gnu99 -Wfloat-equal
> -Wendif-labels -Wundef -Wcast-qual -Wsign-compare -Wpacked
> I suggest using them while coding, there are few warnings for the
> new code for options.
Yow, that's a long list. I'll put those in my build and fix up the warnings.
More information about the alfs-log