Allow inhibiting `not-unused' warnings
* lisp/emacs-lisp/bytecomp.el (byte-compile-warning-types): Allow inhibiting the `not-unused' warning (bug#31641). (There has been some discussion about removing the `not-unused' warning, but it's still in there, so making it possible to inhibit it seems like the right thing to do.) * lisp/emacs-lisp/cconv.el (cconv--analyze-use): Don't warn about `not-unused'.
This commit is contained in:
parent
ab34293d84
commit
913a7d30a3
2 changed files with 5 additions and 5 deletions
|
@ -299,7 +299,7 @@ The information is logged to `byte-compile-log-buffer'."
|
|||
'(redefine callargs free-vars unresolved
|
||||
obsolete noruntime interactive-only
|
||||
make-local mapcar constants suspicious lexical lexical-dynamic
|
||||
docstrings)
|
||||
docstrings not-unused)
|
||||
"The list of warning types used when `byte-compile-warnings' is t.")
|
||||
(defcustom byte-compile-warnings t
|
||||
"List of warnings that the byte-compiler should issue (t for all).
|
||||
|
@ -321,6 +321,7 @@ Elements of the list may be:
|
|||
lexically bound variable declared dynamic elsewhere
|
||||
make-local calls to `make-variable-buffer-local' that may be incorrect.
|
||||
mapcar mapcar called for effect.
|
||||
not-unused warning about using variables with symbol names starting with _.
|
||||
constants let-binding of, or assignment to, constants/nonvariables.
|
||||
docstrings docstrings that are too wide (longer than
|
||||
`byte-compile-docstring-max-column' or
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue