httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@engelschall.com (Ralf S. Engelschall)
Subject Re: [BUILD] mmap_static, type warnings.
Date Sat, 04 Apr 1998 12:45:25 GMT

In article <9804041231.AA12432@gensym1.gensym.com> you wrote:

> new today mod_mmap_static

Seems your scripts compile an Apache with really _every_ 
module enabled, right?

> on the sun4:
>> gcc -c  -I../../os/unix -I../../include   -DSUNOS4 -DUSEBCOPY -DSTATUS -DUSE_HSREGEX
-DHIDE '-DHTTPD_ROOT="/tmp/httpd"'  mod_mmap_static.c
>> mod_mmap_static.c: In function `mmap_static_xlat':
>> mod_mmap_static.c:291: warning: assignment from incompatible pointer type
>> mod_mmap_static.c: In function `mmap_static_handler':
>> mod_mmap_static.c:322: warning: assignment from incompatible pointer type

That's because ISO C's bsearch is defined to return "void *" like malloc,
so we need a cast for the actual type of the assigned variable. 

> On the mips:
>> gcc -c  -I../../os/unix -I../../include   -DULTRIX -DSTATUS -DUSE_HSREGEX -DHIDE
'-DHTTPD_ROOT="/tmp/httpd"'  mod_mmap_static.c
>> mod_mmap_static.c: In function `mmapfile':
>> mod_mmap_static.c:118: warning: assignment makes pointer from integer without a cast

Hmmm... this confuses me. mmapfile is not in line 118. In line 118 there is an
#include statement. Hmmmm.... either I or this MIPS compiler is braindead. Any
clues?
                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com

Mime
View raw message