gnus-util.el (float-time): Get rid of compiler warning, again.
authorGlenn Morris <rgm@gnu.org>
Thu, 27 Jan 2011 10:23:30 +0000 (10:23 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 27 Jan 2011 10:23:30 +0000 (10:23 +0000)
lisp/ChangeLog
lisp/gnus-util.el

index 2ba8461..1e7b83b 100644 (file)
@@ -1,3 +1,7 @@
+2011-01-27  Glenn Morris  <rgm@gnu.org>
+
+       * gnus-util.el (float-time): Get rid of compiler warning, again.
+
 2011-01-27  Lars Ingebrigtsen  <larsi@gnus.org>
 
        * shr.el (shr-put-color): Special-case background colours: Do put them
index f1d0ce9..d298c71 100644 (file)
@@ -333,8 +333,11 @@ Symbols are also allowed; their print names are used instead."
        (and (= (car fdate) (car date))
             (> (nth 1 fdate) (nth 1 date))))))
 
+;; Every version of Emacs Gnus supports has built-in float-time.
+;; The featurep test silences an irritating compiler warning.
 (eval-and-compile
-  (if (fboundp 'float-time)
+  (if (or (featurep 'emacs)
+         (fboundp 'float-time))
       (defalias 'gnus-float-time 'float-time)
     (defun gnus-float-time (&optional time)
       "Convert time value TIME to a floating point number.