httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@algroup.co.uk>
Subject Re: cvs commit: httpd-2.0/modules/dav/main util.c
Date Wed, 02 May 2001 17:20:41 GMT
Greg Stein wrote:
> 
> On Tue, May 01, 2001 at 03:07:15PM -0400, Jeff Trawick wrote:
> > Greg Stein <gstein@lyra.org> writes:
> > > Hrm. I've got "maintainer mode" set on my Apache config, but didn't see that
> > > warning from GCC. What warning switches do you use, and could we get some of
> > > them set for maintainer mode also? I'm all up for stricter GCC warnings.
> >...
> > nothing special...
> >
> > --enable-maintainer-mode
> >
> > here is what it the compile and warning looked like on AIX+gcc:
> >
> > /bin/sh /home/trawick/gcc_regress/httpd-2.0/libtool --silent
> > --mode=compile gcc   -D_USE_IRS -U__STR__ -D_THREAD_SAFE   -g -O2
> > -Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations
> > -mthreads -DAP_DEBUG -DNO_DBM_REWRITEMAP
> > -I. -I/home/trawick/gcc_regress/httpd-2.0/os/unix
> > -I/home/trawick/gcc_regress/httpd-2.0/server/mpm/threaded
> > -I/home/trawick/gcc_regress/httpd-2.0/modules/http
> > -I/home/trawick/gcc_regress/httpd-2.0/include
> > -I/home/trawick/gcc_regress/httpd-2.0/srclib/apr/include
> > -I/home/trawick/gcc_regress/httpd-2.0/srclib/apr-util/include
> > -I/home/trawick/gcc_regress/httpd-2.0/modules/dav/main -c util.c &&
> > touch util.lo
> > util.c: In function `dav_xml_get_cdata':
> > util.c:337: warning: `found_text' might be used uninitialized in this function
> >
> > You didn't get bit by the change from --with-maintainer-mode to
> > --enable-maintainer-mode, did you?
> 
> Nope... I was the one that applied that patch :-)
> 
> I've got egcs-2.91.66 on a Redhat 6.x box. I just looked at the command
> line, and it appears to be the same:
> 
> [gstein@kurgan main]$ make util.lo
> /bin/sh /home/gstein/src/httpd-2.0/libtool --silent --mode=compile gcc  -I.
> -I/home/gstein/src/httpd-2.0/modules/dav/main
> -I/home/gstein/src/httpd-2.0/server/mpm/prefork
> -I/home/gstein/src/httpd-2.0/modules/http
> -I/home/gstein/src/httpd-2.0/include
> -I/home/gstein/src/httpd-2.0/srclib/apr/include
> -I/home/gstein/src/httpd-2.0/srclib/apr-util/include
> -I/home/gstein/src/httpd-2.0/modules/dav/main
> -I/home/gstein/src/httpd-2.0/os/unix   -DLINUX=2 -D_REENTRANT -D_REENTRANT
> -pthread -g -Wall -Wmissing-prototypes -Wstrict-prototypes
> -Wmissing-declarations -DAP_DEBUG  -c util.c && touch util.lo
> [gstein@kurgan main]$
> 
> Must be something in the gcc version, I'd think.

Yeah, different versions vary in sensitivity. BTW, some warnings don't
happen unless optimisation is on, so we may want an
optimised-maintainer-mode (best not to do it by default coz its
confusing when using gdb).

Cheers,

Ben.

--
http://www.apache-ssl.org/ben.html

"There is no limit to what a man can do or how far he can go if he
doesn't mind who gets the credit." - Robert Woodruff

Mime
View raw message