]> granicus.if.org Git - apache/commitdiff
Supress compiler warning.
authorGuenter Knauf <fuankg@apache.org>
Mon, 29 Nov 2010 16:37:49 +0000 (16:37 +0000)
committerGuenter Knauf <fuankg@apache.org>
Mon, 29 Nov 2010 16:37:49 +0000 (16:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1040177 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_protocol.c

index eb1789fe1500209e896e63e88ee78a5a058e26a4..53ed6a031709f4e469a39e8b19703d8bff8e7e6d 100644 (file)
@@ -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++;