Greg Stein <[EMAIL PROTECTED]> 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.
> > Modified: modules/dav/main util.c
> > Log:
> > Index: util.c
> > @@ -334,7 +334,7 @@
> > char *cdata;
> > char *s;
> > apr_size_t tlen;
> > - const char *found_text;
> > + const char *found_text = NULL; /* initialize to avoid gcc warning */
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?
--
Jeff Trawick | [EMAIL PROTECTED] | PGP public key at web site:
http://www.geocities.com/SiliconValley/Park/9289/
Born in Roswell... married an alien...