From: Guenter Knauf Date: Mon, 29 Nov 2010 16:37:49 +0000 (+0000) Subject: Supress compiler warning. X-Git-Tag: 2.3.10~147 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ec3771d370067f6025d513b4891eea1e0e767e8;p=thirdparty%2Fapache%2Fhttpd.git Supress compiler warning. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1040177 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index eb1789fe150..53ed6a03170 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -204,7 +204,12 @@ AP_DECLARE(int) ap_set_keepalive(request_rec *r) * THEN we can be persistent, which requires more headers be output. * * Note that the condition evaluation order is extremely important. + * + * Silent compiler warnings for (r->chunked = 1) with #pragma */ +#ifdef __WATCOMC__ +#pragma disable_message(105) +#endif if ((r->connection->keepalive != AP_CONN_CLOSE) && !r->expecting_100 && ((r->status == HTTP_NOT_MODIFIED) @@ -229,6 +234,9 @@ AP_DECLARE(int) ap_set_keepalive(request_rec *r) && ((ka_sent = ap_find_token(r->pool, conn, "keep-alive")) || (r->proto_num >= HTTP_VERSION(1,1))) && is_mpm_running()) { +#ifdef __WATCOMC__ +#pragma enable_message(105) +#endif r->connection->keepalive = AP_CONN_KEEPALIVE; r->connection->keepalives++;