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.
Cheers,
-g
On Tue, May 01, 2001 at 11:17:08AM -0000, [EMAIL PROTECTED] wrote:
> trawick 01/05/01 04:17:08
>
> Modified: modules/dav/main util.c
> Log:
> Initialize a local variable to prevent a gcc warning about
> possible use before set. The code was fine but it is best
> to keep gcc quiet lest we stop paying attention.
>
> Revision Changes Path
> 1.30 +1 -1 httpd-2.0/modules/dav/main/util.c
>
> Index: util.c
> ===================================================================
> RCS file: /home/cvs/httpd-2.0/modules/dav/main/util.c,v
> retrieving revision 1.29
> retrieving revision 1.30
> diff -u -r1.29 -r1.30
> --- util.c 2001/04/27 05:27:00 1.29
> +++ util.c 2001/05/01 11:17:07 1.30
> @@ -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 */
> int found_count = 0;
>
> for (scan = elem->first_cdata.first; scan != NULL; scan = scan->next) {
>
>
>
--
Greg Stein, http://www.lyra.org/