diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2023-05-13 13:49:07 +0200 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2023-05-13 14:30:59 +0200 |
commit | 9f856e4cd095c24cf4e6cadbc04efaf533e59f37 (patch) | |
tree | e12e307dddab95b24fc8ad2de68b244ea5b0be71 /test/lisp/emacs-lisp/bytecomp-tests.el | |
parent | c083fa5cf80f711ac43dca1b6582aff1ad526e8e (diff) | |
download | emacs-9f856e4cd095c24cf4e6cadbc04efaf533e59f37.tar.gz emacs-9f856e4cd095c24cf4e6cadbc04efaf533e59f37.tar.bz2 emacs-9f856e4cd095c24cf4e6cadbc04efaf533e59f37.zip |
Use `mutate-constant` as warning identifier
* etc/NEWS:
* lisp/emacs-lisp/byte-run.el (with-suppressed-warnings):
* lisp/emacs-lisp/bytecomp.el (byte-compile-warnings)
(byte-compile-form):
* test/lisp/emacs-lisp/bytecomp-tests.el
(bytecomp-test--with-suppressed-warnings):
Use the new warning name `mutate-constant` instead of using the
somewhat overloaded `suspicious`.
Diffstat (limited to 'test/lisp/emacs-lisp/bytecomp-tests.el')
-rw-r--r-- | test/lisp/emacs-lisp/bytecomp-tests.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/lisp/emacs-lisp/bytecomp-tests.el b/test/lisp/emacs-lisp/bytecomp-tests.el index 9136a6cd9b3..a8809bda81c 100644 --- a/test/lisp/emacs-lisp/bytecomp-tests.el +++ b/test/lisp/emacs-lisp/bytecomp-tests.el @@ -1522,31 +1522,31 @@ literals (Bug#20852)." (test-suppression '(defun zot () (setcar '(1 2) 3)) - '((suspicious setcar)) + '((mutate-constant setcar)) "Warning: `setcar' on constant list (arg 1)") (test-suppression '(defun zot () (aset [1 2] 1 3)) - '((suspicious aset)) + '((mutate-constant aset)) "Warning: `aset' on constant vector (arg 1)") (test-suppression '(defun zot () (aset "abc" 1 ?d)) - '((suspicious aset)) + '((mutate-constant aset)) "Warning: `aset' on constant string (arg 1)") (test-suppression '(defun zot (x y) (nconc x y '(1 2) '(3 4))) - '((suspicious nconc)) + '((mutate-constant nconc)) "Warning: `nconc' on constant list (arg 3)") (test-suppression '(defun zot () (put-text-property 0 2 'prop 'val "abc")) - '((suspicious put-text-property)) + '((mutate-constant put-text-property)) "Warning: `put-text-property' on constant string (arg 5)") ) |