diff lisp/emacs-lisp/byte-run.el @ 55041:1376729a93a7

(with-no-warnings): Simplify: take all args as &rest arg.
author Richard M. Stallman <rms@gnu.org>
date Wed, 21 Apr 2004 19:10:29 +0000
parents 94bcfb39cf49
children 79eecb3f0e5a
line wrap: on
line diff
--- a/lisp/emacs-lisp/byte-run.el	Wed Apr 21 19:09:01 2004 +0000
+++ b/lisp/emacs-lisp/byte-run.el	Wed Apr 21 19:10:29 2004 +0000
@@ -134,11 +134,10 @@
   ;; Remember, it's magic.
   (cons 'progn body))
 
-(defun with-no-warnings (&optional first &rest body)
+(defun with-no-warnings (&rest body)
   "Like `progn', but prevents compiler warnings in the body."
   ;; The implementation for the interpreter is basically trivial.
-  (if body (car (last body))
-    first))
+  (car (last body)))
 
 
 ;;; I nuked this because it's not a good idea for users to think of using it.