Philippe M. Chiasson wrote:
> Caught a few little problems caught by gcc -Wall -Werror this morning.
> 
> Index: src/modules/perl/modperl_const.c 
> =================================================================== RCS
> file: /home/cvs/modperl-2.0/src/modules/perl/modperl_const.c,v retrieving
> revision 1.9 diff -u -I$Id -r1.9 modperl_const.c ---
> src/modules/perl/modperl_const.c      12 May 2003 13:00:15 -0000      1.9 +++
> src/modules/perl/modperl_const.c      5 Feb 2004 18:51:41 -0000 @@ -10,7 +10,7
> @@ { int name_len = strlen(name); GV **gvp = (GV **)hv_fetch(stash, name,
> name_len, TRUE); -    SV *val; +    SV *val = Nullsv;

hmm, I'm not seeing any of these with -Wall and -Werror.

cc -I/src/mod_perl-2.0/src/modules/perl -I/src/mod_perl-2.0/xs
-I/apache/2.0/worker/perl-5.8.3/include
-I/apache/2.0/worker/perl-5.8.3/include -D_REENTRANT -D_GNU_SOURCE
-DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include
-I/usr/include/gdbm  -I/perl/perl-5.8.3/lib/5.8.3/i686-linux-thread-multi/C
ORE -DMOD_PERL -Wall -Wmissing-prototypes -Wstrict-prototypes
-Wmissing-declarations -Werror -DAP_DEBUG -DAP_HAVE_DESIGNATED_INITIALIZER
-DMP_DEBUG -DMP_TRACE -g -fpic \
-c modperl_const.c && mv modperl_const.o modperl_const.lo

my current setup uses MP_MAINTAINER=1 only, which is supposed to enable both
of those flags.

do you have a compiler flag that I'm missing?  I'm on gcc version 3.2.2, so
maybe you have access to something I don't.

--Geoff


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to