Return-Path: Delivered-To: apmail-httpd-apreq-dev-archive@www.apache.org Received: (qmail 80145 invoked from network); 13 Jan 2009 20:38:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Jan 2009 20:38:19 -0000 Received: (qmail 29237 invoked by uid 500); 13 Jan 2009 20:38:19 -0000 Delivered-To: apmail-httpd-apreq-dev-archive@httpd.apache.org Received: (qmail 29209 invoked by uid 500); 13 Jan 2009 20:38:19 -0000 Mailing-List: contact apreq-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list apreq-dev@httpd.apache.org Received: (qmail 29200 invoked by uid 99); 13 Jan 2009 20:38:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jan 2009 12:38:18 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [206.190.49.137] (HELO web54407.mail.yahoo.com) (206.190.49.137) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 13 Jan 2009 20:38:11 +0000 Received: (qmail 33500 invoked by uid 60001); 13 Jan 2009 20:37:49 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=js/OgGr7xB++du2iUWIyZcYbEhO+fl+KVABp1VttJskYWyW0ngnsjdndftdV+16bE+vnsI8fIj5izHN3lPld13PYOidZbT1VidKhjFpGobKovq7T+0sI7jl2qhmRQ7XYR4roNKUbItvR6qSN68xxEn15yfU6cLt0Lyk7Zf2ap+s=; X-YMail-OSG: Wtxw7HQVM1mN19ZTrHd5RPGlmFJQId_OQcLgQJkJCRhEow.Vf1aStFomSR4MQxvWAvykmFIj6OQ8pbURFAiWkLJsAgU49.dcFhmoATCTairqpmSqWCx_N7OaXLCBNAqIbF3H8xLOyu6puHycG_Bgy_Wk7GS1CF7HjWvBHiM2NWdti3DTnkTWaiUGwYN14WYU0bIaQcfof.3GAOcnDXL2icY6jj8lSqM- Received: from [65.12.220.185] by web54407.mail.yahoo.com via HTTP; Tue, 13 Jan 2009 12:37:49 PST X-Mailer: YahooMailRC/1155.45 YahooMailWebService/0.7.260.1 References: <20090113203158.EF8ED238895D@eris.apache.org> Date: Tue, 13 Jan 2009 12:37:49 -0800 (PST) From: Joe Schaefer Subject: Re: svn commit: r734232 - /httpd/apreq/trunk/library/module_cgi.c To: apreq-dev@httpd.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <795958.33146.qm@web54407.mail.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org After this commit all I'm left with is the following issue that prevents compilation on my machine: % make ... gcc -DHAVE_CONFIG_H -I. -I. -I../include -I/home/joe/httpd/trunk/prefork/include/apr-1 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -fno-strict-aliasing -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -Wcast-qual -Wfloat-equal -Wshadow -Wpointer-arith -Wbad-function-cast -Wsign-compare -Waggregate-return -Wmissing-noreturn -Wmissing-format-attribute -Wpacked -Wredundant-decls -Wnested-externs -Wdisabled-optimization -Wno-long-long -Wendif-labels -Wcast-align -c module_cgi.c -MT module_cgi.lo -MD -MP -MF .deps/module_cgi.TPlo -fPIC -DPIC -o .libs/module_cgi.o cc1: warnings being treated as errors module_cgi.c: In function 'apreq_handle_cgi': module_cgi.c:1005: warning: reading through null pointer (argument 3) module_cgi.c:1005: warning: format '%s' expects type 'char *', but argument 3 has type 'void *' make[2]: *** [module_cgi.lo] Error 1 line 1005 has: sprintf(buf, "%s", NULL); which can't be right, can it? What do you really want to write to buf, Issac? ----- Original Message ---- > From: "joes@apache.org" > To: apreq-cvs@httpd.apache.org > Sent: Tuesday, January 13, 2009 3:31:53 PM > Subject: svn commit: r734232 - /httpd/apreq/trunk/library/module_cgi.c > > Author: joes > Date: Tue Jan 13 12:31:48 2009 > New Revision: 734232 > > URL: http://svn.apache.org/viewvc?rev=734232&view=rev > Log: > more gcc warnings evaded > > Modified: > httpd/apreq/trunk/library/module_cgi.c > > Modified: httpd/apreq/trunk/library/module_cgi.c > URL: > http://svn.apache.org/viewvc/httpd/apreq/trunk/library/module_cgi.c?rev=734232&r1=734231&r2=734232&view=diff > ============================================================================== > --- httpd/apreq/trunk/library/module_cgi.c (original) > +++ httpd/apreq/trunk/library/module_cgi.c Tue Jan 13 12:31:48 2009 > @@ -230,7 +230,7 @@ > } > case '\\': /* Check next character for escape sequence > * (just ignore it for now) */ > - *cprompt++; > + (void)*cprompt++; > /* Fallthrough */ > > default: > @@ -243,7 +243,7 @@ > apr_file_printf(req->sout, "%s", buf[0]); > apr_file_gets(buf[0], MAX_BUFFER_SIZE, req->sin); > chomp(buf[0]); > - if (stricmp(buf[0], "")) { > + if (strcmp(buf[0], "")) { > /* if (strcmp(buf[0], nullstr)) */ > return apr_pstrdup(handle->pool, buf[0]); > /* return NULL; */ > @@ -597,7 +597,7 @@ > else > t = req->jar; > > - val = (char *)apr_table_get(t, name); > + val = apr_table_get(t, name); > if (val == NULL) { > if (!req->interactive_mode) { > return NULL;