[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/buttercup bbbf692 166/340: Fix more compile warnings.
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/buttercup bbbf692 166/340: Fix more compile warnings. |
Date: |
Thu, 16 Dec 2021 14:59:27 -0500 (EST) |
branch: elpa/buttercup
commit bbbf6924ff214b518718687ead96ceec92bdbaba
Author: Philipp Stephani <phst@google.com>
Commit: Jorgen Schäfer <Jorgen.Schaefer@gmail.com>
Fix more compile warnings.
Mark symbols only used for destructuring as unused.
---
buttercup.el | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/buttercup.el b/buttercup.el
index 4171ebb..5830911 100644
--- a/buttercup.el
+++ b/buttercup.el
@@ -65,14 +65,14 @@ forms are useful if EXPR is a macro call, in which case the
`quote' ensures access to the un-expanded form."
(pcase fun
(`(closure ,(pred listp) nil ,expr) expr)
- (`(closure ,(pred listp) nil (quote ,expr) . ,rest) expr)
- (`(closure ,(pred listp) nil ,expr . ,(pred identity))
+ (`(closure ,(pred listp) nil (quote ,expr) . ,_rest) expr)
+ (`(closure ,(pred listp) nil ,_expr . ,(pred identity))
(error "Closure contains multiple expressions: %S" fun))
(`(closure ,(pred listp) ,(pred identity) . ,(pred identity))
(error "Closure has nonempty arglist: %S" fun))
(`(lambda nil ,expr) expr)
- (`(lambda nil (quote ,expr) . ,rest) expr)
- (`(lambda nil ,expr . ,(pred identity))
+ (`(lambda nil (quote ,expr) . ,_rest) expr)
+ (`(lambda nil ,_expr . ,(pred identity))
(error "Function contains multiple expressions: %S" fun))
(`(lambda ,(pred identity) . ,(pred identity))
(error "Function has nonempty arglist: %S" fun))
@@ -539,7 +539,7 @@ See also `buttercup-define-matcher'."
(buttercup-define-matcher :to-be-close-to (a b precision)
(cl-destructuring-bind
- (precision (a-expr . a) (b-expr . b))
+ (precision (a-expr . a) (_b-expr . b))
(cons (funcall precision)
(mapcar #'buttercup--expr-and-value (list a b)))
(let ((tolerance (expt 10.0 (- precision))))
- [nongnu] elpa/buttercup e8140aa 133/340: Implement configurable stack traces, (continued)
- [nongnu] elpa/buttercup e8140aa 133/340: Implement configurable stack traces, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup e6f97d0 136/340: Release 1.8, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup e26ea54 137/340: Let spy-on :and-return-value work with lists and symbols (close #104), ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup e55e3d8 138/340: travis: Test on 25.1 and 25.2, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup c032c8f 141/340: Exec code blocks in markdown labeled as "emacs-lisp" and "elisp", ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup b97714d 144/340: Declare all variables before first use, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 4128f3e 147/340: Document ERT support in writing-tests.md, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 47dd72c 156/340: Set file local variables for consistent code style, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 5458dcc 158/340: Replace buttercup-*-parents with buttercup-suite-or-spec-parents, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 77367d3 165/340: Change shebang to use /usr/bin/env, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup bbbf692 166/340: Fix more compile warnings.,
ELPA Syncer <=
- [nongnu] elpa/buttercup bcaa7f0 163/340: Use buttercup--specs where possible, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 61ebe91 171/340: Update README.md, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 39d625c 173/340: Bump version: 1.11 → 1.12, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 6330610 176/340: Add more markdown running functions, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 3d3aff9 178/340: Set file local code-style variables in test-buttercup.el, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 553529f 181/340: Remove obsolete buttercup-xdescribe, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 5821cd0 184/340: Merge pull request #131 from snogge/markdown, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup a394fea 191/340: Bump version: 1.13 → 1.14, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 7cea4c6 192/340: Test buttercup-run, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup b410c78 193/340: Separate return code from reporter, ELPA Syncer, 2021/12/16