summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2004-04-21 19:10:29 +0000
committerRichard M. Stallman <rms@gnu.org>2004-04-21 19:10:29 +0000
commitae122ad2d485518df1708303fa7fe1556315e916 (patch)
treedc7504175c0619ebd247b3aed16d33ea360a107b /lisp/emacs-lisp
parent12148b0e3bb5e197a3e4150fd61cf4c4fcffb1a7 (diff)
downloademacs-ae122ad2d485518df1708303fa7fe1556315e916.tar.gz
emacs-ae122ad2d485518df1708303fa7fe1556315e916.tar.bz2
emacs-ae122ad2d485518df1708303fa7fe1556315e916.zip
(with-no-warnings): Simplify: take all args as &rest arg.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/byte-run.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el
index 9956d5003cc..4ed47129fc9 100644
--- a/lisp/emacs-lisp/byte-run.el
+++ b/lisp/emacs-lisp/byte-run.el
@@ -134,11 +134,10 @@ The result of the body appears to the compiler as a quoted constant."
;; 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.