httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fua...@apache.org
Subject svn commit: r1040177 - /httpd/httpd/trunk/modules/http/http_protocol.c
Date Mon, 29 Nov 2010 16:37:49 GMT
Author: fuankg
Date: Mon Nov 29 16:37:49 2010
New Revision: 1040177

URL: http://svn.apache.org/viewvc?rev=1040177&view=rev
Log:
Supress compiler warning.

Modified:
    httpd/httpd/trunk/modules/http/http_protocol.c

Modified: httpd/httpd/trunk/modules/http/http_protocol.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http/http_protocol.c?rev=1040177&r1=1040176&r2=1040177&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/http/http_protocol.c (original)
+++ httpd/httpd/trunk/modules/http/http_protocol.c Mon Nov 29 16:37:49 2010
@@ -204,7 +204,12 @@ AP_DECLARE(int) ap_set_keepalive(request
      *   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
         && ((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++;



Mime
View raw message