branch: externals/yaml
commit 9e1d6c7e3ca811847442201a5e3deb6972a32982
Author: Danny Willems <[email protected]>
Commit: Danny Willems <[email protected]>
test: silence unused lexical variable warnings
Two byte-compile warnings in yaml-tests.el:
- the `condition-case' error variable `n' is never used in the handler,
so drop it (use nil).
- `parsed' in `yaml-test-round-trip' is bound but unused; rename to
`_parsed' to mark it intentionally unused while still exercising the
parse.
---
yaml-tests.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/yaml-tests.el b/yaml-tests.el
index 70513ecb95..8f97174a60 100644
--- a/yaml-tests.el
+++ b/yaml-tests.el
@@ -496,7 +496,7 @@ foo: bar
- [ {JSON: like}:adjacent ]"))
;; example 7.22
- (should (not (condition-case n
+ (should (not (condition-case nil
(yaml-parse-string "[ foo
bar: invalid,
\"foo...>1K characters...bar\": invalid ]")
@@ -552,7 +552,7 @@ keep: |+
(defun yaml-test-round-trip (o)
"Test (equal (decode (encode o)) o)"
(let* ((encoded (yaml-encode o))
- (parsed (yaml-parse-string encoded
+ (_parsed (yaml-parse-string encoded
:object-type 'alist
:sequence-type 'list))
(encoded-2 (yaml-encode o)))