aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMattias EngdegÄrd2023-05-13 13:49:07 +0200
committerMattias EngdegÄrd2023-05-13 14:30:59 +0200
commit9f856e4cd095c24cf4e6cadbc04efaf533e59f37 (patch)
treee12e307dddab95b24fc8ad2de68b244ea5b0be71 /test
parentc083fa5cf80f711ac43dca1b6582aff1ad526e8e (diff)
downloademacs-9f856e4cd095c24cf4e6cadbc04efaf533e59f37.tar.gz
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')
-rw-r--r--test/lisp/emacs-lisp/bytecomp-tests.el10
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)."
1522 (test-suppression 1522 (test-suppression
1523 '(defun zot () 1523 '(defun zot ()
1524 (setcar '(1 2) 3)) 1524 (setcar '(1 2) 3))
1525 '((suspicious setcar)) 1525 '((mutate-constant setcar))
1526 "Warning: `setcar' on constant list (arg 1)") 1526 "Warning: `setcar' on constant list (arg 1)")
1527 1527
1528 (test-suppression 1528 (test-suppression
1529 '(defun zot () 1529 '(defun zot ()
1530 (aset [1 2] 1 3)) 1530 (aset [1 2] 1 3))
1531 '((suspicious aset)) 1531 '((mutate-constant aset))
1532 "Warning: `aset' on constant vector (arg 1)") 1532 "Warning: `aset' on constant vector (arg 1)")
1533 1533
1534 (test-suppression 1534 (test-suppression
1535 '(defun zot () 1535 '(defun zot ()
1536 (aset "abc" 1 ?d)) 1536 (aset "abc" 1 ?d))
1537 '((suspicious aset)) 1537 '((mutate-constant aset))
1538 "Warning: `aset' on constant string (arg 1)") 1538 "Warning: `aset' on constant string (arg 1)")
1539 1539
1540 (test-suppression 1540 (test-suppression
1541 '(defun zot (x y) 1541 '(defun zot (x y)
1542 (nconc x y '(1 2) '(3 4))) 1542 (nconc x y '(1 2) '(3 4)))
1543 '((suspicious nconc)) 1543 '((mutate-constant nconc))
1544 "Warning: `nconc' on constant list (arg 3)") 1544 "Warning: `nconc' on constant list (arg 3)")
1545 1545
1546 (test-suppression 1546 (test-suppression
1547 '(defun zot () 1547 '(defun zot ()
1548 (put-text-property 0 2 'prop 'val "abc")) 1548 (put-text-property 0 2 'prop 'val "abc"))
1549 '((suspicious put-text-property)) 1549 '((mutate-constant put-text-property))
1550 "Warning: `put-text-property' on constant string (arg 5)") 1550 "Warning: `put-text-property' on constant string (arg 5)")
1551 ) 1551 )
1552 1552