mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-18 02:47:36 +00:00
(byte-compile-warnings-safe-p): Use `byte-compile-warning-types'.
Add docstring.
This commit is contained in:
parent
fb9e0d3494
commit
daedb19635
1 changed files with 2 additions and 5 deletions
|
|
@ -378,17 +378,14 @@ suppress. For example, (not mapcar) will suppress warnings about mapcar."
|
|||
|
||||
;;;###autoload
|
||||
(defun byte-compile-warnings-safe-p (x)
|
||||
"Return non-nil if X is valid as a value of `byte-compile-warnings'."
|
||||
(or (booleanp x)
|
||||
(and (listp x)
|
||||
(if (eq (car x) 'not) (setq x (cdr x))
|
||||
t)
|
||||
(equal (mapcar
|
||||
(lambda (e)
|
||||
(when (memq e '(free-vars unresolved
|
||||
callargs redefine
|
||||
obsolete noruntime
|
||||
cl-functions interactive-only
|
||||
make-local mapcar))
|
||||
(when (memq e byte-compile-warning-types)
|
||||
e))
|
||||
x)
|
||||
x))))
|
||||
|
|
|
|||
Loading…
Reference in a new issue