httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <n...@webthing.com>
Subject Re: svn commit: r421686 - in /httpd/httpd/trunk: CHANGES docs/manual/mod/mod_proxy.xml modules/proxy/mod_proxy.c modules/proxy/mod_proxy.h modules/proxy/proxy_util.c
Date Fri, 14 Jul 2006 14:35:53 GMT
On Friday 14 July 2006 14:16, Joe Orton wrote:

> This introduced compiler warnings:
>
> cc1: warnings being treated as errors
> mod_proxy.c: In function `proxy_interpolate':
> mod_proxy.c:427: warning: passing arg 1 of `ap_strstr' discards qualifiers
> from pointer target type mod_proxy.c:431: warning: passing arg 1 of
> `ap_strchr' discards qualifiers from pointer target type make[4]: ***
> [mod_proxy.slo] Error 1

Ugh.

It's being used in those lines with "const char*" arguments.
That's what the <string.h> strstr and strchr take.  Depending
on the AP_DEBUG setting, ap_strstr may be #defined to strstr
and ap_strchr to strchr.

So the fact that that *can* generate those warnings looks like
an over-engineered and inconsistent httpd.h.

-- 
Nick Kew

Mime
View raw message