You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rasmus Lerdorf <ra...@lerdorf.on.ca> on 1998/01/16 06:27:56 UTC

new compiler warnings

gcc -c  -I../../regex -I../../os/unix -I../../main    -DSOLARIS2=251
-DNO_SLACK=1 -DUSE_FCNTL_SERIALIZED_ACCEPT=1  mod_imap.c
mod_imap.c: In function `imap_handler':
mod_imap.c:768: warning: passing arg 2 of `pointinpoly' from incompatible
pointer type
mod_imap.c:780: warning: passing arg 2 of `pointincircle' from
incompatible pointer type
mod_imap.c:792: warning: passing arg 2 of `pointinrect' from incompatible
pointer type
mod_imap.c:804: warning: passing arg 2 of `is_closer' from incompatible
pointer type

-Rasmus


Re: new compiler warnings

Posted by ra...@bellglobal.com.
> Oh wow, gcc is even complaining about that?  Funny, mine doesn't... what
> version is that? 

gcc-2.8.0

-Rasmus

Re: new compiler warnings

Posted by Marc Slemko <ma...@worldgate.com>.
Look at PR#1685:

"mod_imap.c", line 766: warning: argument #2 is incompatible with prototype:
        prototype: pointer to array[2] of const double : "mod_imap.c", line 198
        argument : pointer to array[2] of double
"mod_imap.c", line 778: warning: argument #2 is incompatible with prototype:
        prototype: pointer to array[2] of const double : "mod_imap.c", line 185
        argument : pointer to array[2] of double
"mod_imap.c", line 790: warning: argument #2 is incompatible with prototype:
        prototype: pointer to array[2] of const double : "mod_imap.c", line 160
        argument : pointer to array[2] of double
"mod_imap.c", line 802: warning: argument #2 is incompatible with prototype:
        prototype: pointer to array[2] of const double : "mod_imap.c", line 273
        argument : pointer to array[2] of double


(from SC4.0)

Hmm... I don't know...

On Fri, 16 Jan 1998, Dean Gaudet wrote:

> Oh wow, gcc is even complaining about that?  Funny, mine doesn't... what
> version is that? 
> 
> I'll +1 a patch to remove those const qualifiers... they served their
> purpose.  Too busy to put it together right now.
> 
> Dean
> 
> On Fri, 16 Jan 1998, Rasmus Lerdorf wrote:
> 
> > gcc -c  -I../../regex -I../../os/unix -I../../main    -DSOLARIS2=251
> > -DNO_SLACK=1 -DUSE_FCNTL_SERIALIZED_ACCEPT=1  mod_imap.c
> > mod_imap.c: In function `imap_handler':
> > mod_imap.c:768: warning: passing arg 2 of `pointinpoly' from incompatible
> > pointer type
> > mod_imap.c:780: warning: passing arg 2 of `pointincircle' from
> > incompatible pointer type
> > mod_imap.c:792: warning: passing arg 2 of `pointinrect' from incompatible
> > pointer type
> > mod_imap.c:804: warning: passing arg 2 of `is_closer' from incompatible
> > pointer type
> > 
> > -Rasmus
> > 
> > 
> 


Re: new compiler warnings

Posted by Dean Gaudet <dg...@arctic.org>.
Oh wow, gcc is even complaining about that?  Funny, mine doesn't... what
version is that? 

I'll +1 a patch to remove those const qualifiers... they served their
purpose.  Too busy to put it together right now.

Dean

On Fri, 16 Jan 1998, Rasmus Lerdorf wrote:

> gcc -c  -I../../regex -I../../os/unix -I../../main    -DSOLARIS2=251
> -DNO_SLACK=1 -DUSE_FCNTL_SERIALIZED_ACCEPT=1  mod_imap.c
> mod_imap.c: In function `imap_handler':
> mod_imap.c:768: warning: passing arg 2 of `pointinpoly' from incompatible
> pointer type
> mod_imap.c:780: warning: passing arg 2 of `pointincircle' from
> incompatible pointer type
> mod_imap.c:792: warning: passing arg 2 of `pointinrect' from incompatible
> pointer type
> mod_imap.c:804: warning: passing arg 2 of `is_closer' from incompatible
> pointer type
> 
> -Rasmus
> 
>