From: Glenn Morris Date: Fri, 13 Sep 2013 07:01:55 +0000 (-0700) Subject: Silence some url compilation warnings on systems without zlib X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~1649 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d6a0426625234e201b1df4514fdf735bca614463;p=emacs.git Silence some url compilation warnings on systems without zlib * url-http.el (url-handle-content-transfer-encoding): * url-vars.el (url-mime-encoding-string): Silence compiler. --- diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog index 52a69690534..3f48b8ff431 100644 --- a/lisp/url/ChangeLog +++ b/lisp/url/ChangeLog @@ -1,3 +1,8 @@ +2013-09-13 Glenn Morris + + * url-http.el (url-handle-content-transfer-encoding): + * url-vars.el (url-mime-encoding-string): Silence compiler. + 2013-08-14 Lars Magne Ingebrigtsen * url-http.el (url-http-parse-headers): Always place point at the diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el index 7047e6b5f13..4f9e868c05e 100644 --- a/lisp/url/url-http.el +++ b/lisp/url/url-http.el @@ -861,7 +861,7 @@ should be shown to the user." (defun url-handle-content-transfer-encoding () (let ((encoding (mail-fetch-field "content-encoding"))) (when (and encoding - (fboundp 'zlib-decompress-region) + (fboundp 'zlib-available-p) (zlib-available-p) (equal (downcase encoding) "gzip")) (save-restriction diff --git a/lisp/url/url-vars.el b/lisp/url/url-vars.el index 0361e01dfb4..a34111c27b7 100644 --- a/lisp/url/url-vars.el +++ b/lisp/url/url-vars.el @@ -210,7 +210,7 @@ Should be an assoc list of headers/contents.") (defvar url-request-method nil "The method to use for the next request.") -(defvar url-mime-encoding-string (and (fboundp 'zlib-decompress-region) +(defvar url-mime-encoding-string (and (fboundp 'zlib-available-p) (zlib-available-p) "gzip") "String to send in the Accept-encoding: field in HTTP requests.")