aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/emacs-lisp/bytecomp.el7
1 files changed, 2 insertions, 5 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 2aeefc38e8c..1ba4de2f354 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -378,17 +378,14 @@ suppress. For example, (not mapcar) will suppress warnings about mapcar."
378 378
379;;;###autoload 379;;;###autoload
380(defun byte-compile-warnings-safe-p (x) 380(defun byte-compile-warnings-safe-p (x)
381 "Return non-nil if X is valid as a value of `byte-compile-warnings'."
381 (or (booleanp x) 382 (or (booleanp x)
382 (and (listp x) 383 (and (listp x)
383 (if (eq (car x) 'not) (setq x (cdr x)) 384 (if (eq (car x) 'not) (setq x (cdr x))
384 t) 385 t)
385 (equal (mapcar 386 (equal (mapcar
386 (lambda (e) 387 (lambda (e)
387 (when (memq e '(free-vars unresolved 388 (when (memq e byte-compile-warning-types)
388 callargs redefine
389 obsolete noruntime
390 cl-functions interactive-only
391 make-local mapcar))
392 e)) 389 e))
393 x) 390 x)
394 x)))) 391 x))))