branch: externals/vc-jj commit 318d0af01615e16654cc117f1a3eacb6ee438acd Author: Javier Olaechea <pir...@gmail.com> Commit: Javier Olaechea <pir...@gmail.com>
Fix Byte-Compilation Error: Unused lexical argument ‘y’ ```shell emacs -batch -Q -L . --eval '(setq byte-compile-error-on-warn t)' -f batch-byte-compile vc-jj-tests.el In toplevel form: vc-jj-tests.el:88:64: Error: Unused lexical argument ‘y’ make: *** [Makefile:11: vc-jj-tests.elc] Error 1 ``` --- vc-jj-tests.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vc-jj-tests.el b/vc-jj-tests.el index cd5958901c..4944daf393 100644 --- a/vc-jj-tests.el +++ b/vc-jj-tests.el @@ -85,7 +85,7 @@ is needed." (vc-jj-test-with-repo repo (write-region "New file" nil "README") (should (eq (vc-jj-state "README") 'added)) - (should (equal (vc-jj-dir-status-files repo nil (lambda (x y) x)) + (should (equal (vc-jj-dir-status-files repo nil (lambda (x _y) x)) '(("README" added)))))) (ert-deftest vc-jj-test-added-tracked () @@ -96,7 +96,7 @@ is needed." (write-region "In second commit" nil "second-file") (should (eq (vc-jj-state "second-file") 'added)) (should (eq (vc-jj-state "first-file") 'up-to-date)) - (should (equal (vc-jj-dir-status-files repo nil (lambda (x y) x)) + (should (equal (vc-jj-dir-status-files repo nil (lambda (x _y) x)) '(("second-file" added) ("first-file" up-to-date)))))) (ert-deftest vc-jj-delete-file () @@ -109,7 +109,7 @@ is needed." (should (eq (vc-jj-state "first-file") 'removed)) (write-region "Second file" nil "second-file") (should (eq (vc-jj-state "second-file") 'added)) - (should (equal (vc-jj-dir-status-files repo nil (lambda (x y) x)) + (should (equal (vc-jj-dir-status-files repo nil (lambda (x _y) x)) '(("second-file" added) ("first-file" removed)))))) (ert-deftest vc-jj-test-conflict ()