# HG changeset patch # User Glenn Morris # Date 1216176640 0 # Node ID be35d9783436d699f5e187a3ee62373bd515c432 # Parent e3b70303f1e9d824e8bf32b96b7ad6320704288c Simply require 'cl (silences spurious warnings). diff -r e3b70303f1e9 -r be35d9783436 lisp/emacs-lisp/cl-compat.el --- a/lisp/emacs-lisp/cl-compat.el Wed Jul 16 02:50:15 2008 +0000 +++ b/lisp/emacs-lisp/cl-compat.el Wed Jul 16 02:50:40 2008 +0000 @@ -44,8 +44,15 @@ ;;; Code: -;; Require at load-time, but not when compiling cl-compat. -(or (featurep 'cl) (require 'cl)) +;; This used to be: +;; (or (featurep 'cl) (require 'cl)) +;; which just has the effect of fooling the byte-compiler into not +;; loading cl when compiling. However, that leads to some bogus +;; compiler warnings. Loading cl when compiling cannot do any harm, +;; because for a long time bootstrap-emacs contained 'cl, due to being +;; dumped from uncompiled files that eval-when-compile'd cl. So every +;; file was compiled with 'cl loaded. +(require 'cl) ;;; Keyword routines not supported by new package.