You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by ra...@vex.net on 1996/09/15 16:01:24 UTC

-Wall police is back

I thought we all agreed to use -Wall?  A couple of obvious ones have
snuck into the code tree:

gcc -c   -O2 -Wall -DLINUX -DSTATUS   http_config.c
http_config.c: In function `init_virtual_host':
http_config.c:759: warning: unused variable `t'

gcc -c   -O2 -Wall -DLINUX -DSTATUS   http_protocol.c
http_protocol.c: In function `set_byterange':
http_protocol.c:232: warning: long unsigned int format, unsigned int arg (arg4)


Another worry I have is not knowing which regexp library is out there from
a module's point of view.  I can check the MODULE_MAGIC_NUMBER and assume
that if it is >= 19960725 there will be a POSIX-style regexp library available,
but I have no idea which one.  They should all be compatible, sure, but
unfortunately they aren't.  Some are buggier than others.  Just try feeding
some of them a regular expression like: "(a*)*" and watch them go into a
busy-loop.  What was the argument against just always compiling in
Henry Spencer's regex library by default?

-Rasmus



Re: -Wall police is back

Posted by Brian Behlendorf <br...@organic.com>.
On Sun, 15 Sep 1996 rasmus@vex.net wrote:
> I thought we all agreed to use -Wall?  A couple of obvious ones have
> snuck into the code tree:

I'll add one:

  gcc -c   -O2 -DSTATUS -Wall  http_core.c
  http_core.c:941: warning: `no_set_limit' defined but not used

> gcc -c   -O2 -Wall -DLINUX -DSTATUS   http_config.c
> http_config.c: In function `init_virtual_host':
> http_config.c:759: warning: unused variable `t'

I have now fixed this.  

> gcc -c   -O2 -Wall -DLINUX -DSTATUS   http_protocol.c
> http_protocol.c: In function `set_byterange':
> http_protocol.c:232: warning: long unsigned int format, unsigned int arg (arg4)

Weird, I saw it elsewhere:

  gcc -c   -O2 -DSTATUS -Wall  http_protocol.c
  http_protocol.c: In function `set_last_modified':
  http_protocol.c:351: warning: long unsigned int format, different type arg (arg 4)

I personally don't know how to fix this, someone else want to?

	Brian

--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
brian@organic.com  www.apache.org  hyperreal.com  http://www.organic.com/JOBS