httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@gonzo.ben.algroup.co.uk>
Subject Re: -Wall under FreeBSD-2.1
Date Sun, 31 Mar 1996 13:56:11 GMT
> 
> compiling -Wall on 1.1-dev this morning...
> 
> gcc -c -Wall -O2 -DSTATUS_INSTRUMENTATION -DXBITHACK -m486 mod_include.c
> mod_include.c: In function `add_include_vars':
> mod_include.c:102: warning: int format, long int arg (arg 3)
> 
> 
> gcc -c -Wall -O2 -DSTATUS_INSTRUMENTATION -DXBITHACK -m486 mod_proxy.c
> mod_proxy.c: In function `cache_check':
> mod_proxy.c:1627: warning: empty body in an else-statement

This is caused by an Explain function call which turns into nothing when you
don't use -DEXPLAIN ... let me know how to shut it up neatly, and I will!

> mod_proxy.c: In function `ftp_handler':
> mod_proxy.c:2244: warning: `passlen' might be used uninitialized in this function

Well, "might" is the operative word here (though perhaps the compiler should
be more cautious and say "I'm not sure whether...") because, in fact, if
passlen is not initialised, then the code which uses it is not reached. I've
stuck in an initialisation anyway to shut the compiler up.

> mod_proxy.c: At top level:
> mod_proxy.c:908: warning: `del_header' defined but not used

True enough, #ifdef'ed out...

> 
> Ay.
> 

Cheers,

Ben.

-- 
Ben Laurie                  Phone: +44 (181) 994 6435
Freelance Consultant and    Fax:   +44 (181) 994 6472
Technical Director          Email: ben@algroup.co.uk
A.L. Digital Ltd,           URL: http://www.algroup.co.uk
London, England.

Mime
View raw message