]> git.eshelyaron.com Git - emacs.git/commitdiff
* emacs-lisp/generator.el (cps--gensym, cps--transform-1): Silence compiler
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 19 May 2015 19:37:14 +0000 (15:37 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 19 May 2015 19:37:14 +0000 (15:37 -0400)
lisp/emacs-lisp/generator.el

index 8251682590e5f662b58001eb753e2149b2c1b1d9..c8e61f3be03c68c67f63f5510a93daa9978c00e5 100644 (file)
@@ -90,7 +90,7 @@
   ;; Change this function to use `cl-gensym' if you want the generated
   ;; code to be easier to read and debug.
   ;; (cl-gensym (apply #'format fmt args))
-  `(make-symbol ,fmt))
+  `(progn (ignore ,@args) (make-symbol ,fmt)))
 
 (defvar cps--dynamic-wrappers '(identity)
   "List of transformer functions to apply to atomic forms we
@@ -308,14 +308,14 @@ don't yield.")
                           collect (if (symbolp binding)
                                       (list binding nil)
                                     binding)))
-             (temps (cl-loop for (var value-form) in bindings
+             (temps (cl-loop for (var _value-form) in bindings
                        collect (cps--add-binding var))))
         (cps--transform-1
          `(let* ,(append
-                  (cl-loop for (var value-form) in bindings
+                  (cl-loop for (_var value-form) in bindings
                      for temp in temps
                      collect (list temp value-form))
-                  (cl-loop for (var binding) in bindings
+                  (cl-loop for (var _binding) in bindings
                      for temp in temps
                      collect (list var temp)))
             ,@body)