diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2023-03-21 20:17:00 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2023-03-21 20:17:00 -0700 |
commit | 6a5d5e45f262794753fb2fa698bbf66fb6d7cc3b (patch) | |
tree | bc4ae55be731e31681d17951086d37155aea7e3a /stdlib/doloop.tl | |
parent | fc9f466a57cff429e65d73aba353f36e977866cd (diff) | |
download | txr-6a5d5e45f262794753fb2fa698bbf66fb6d7cc3b.tar.gz txr-6a5d5e45f262794753fb2fa698bbf66fb6d7cc3b.tar.bz2 txr-6a5d5e45f262794753fb2fa698bbf66fb6d7cc3b.zip |
compiler: fix remaining unused variable warnings
Now that we have the t convention in macro parameters,
we can use it to suppress many cases of unused variables
in the compiler.
* stdlib/compiler.tl (compiler (comp-setq, comp-lisp1-setq,
comp-setqf, comp-cond, comp-ift, comp-switch,
comp-unwind-protect, comp-return, comp-handler-bind,
comp-catch, eliminate-frame, comp-lambda-impl,
comp-fun, comp-or, comp-prog1, comp-arith-form,
comp-arith-neg-form, comp-fun-form, comp-apply-call,
comp-for, comp-tree-bind, comp-mac-param-bind,
comp-mac-env-param-bind, comp-tree-case, comp-lisp1-value,
comp-dwim, comp-prof, comp-load-time-lit), expand-quasi-mods,
expand-dohash, expand-each, expand-defvar, expand-defun,
expand-defmacro, expand-defsymacro, lambda-apply-transform,
usr:compile): Fix unused variable warnings mostly by using
the t mechanism in tree-case or mac-param-bind. In
some cases, (use var) is used where it would be detrimental
to diagnostic quality to replace identifiers in the
pattern with t. A few unused "else" variables were renamed
and used.
(safe-const-reduce, ign-notfound): Fix unused exception
clause unused parameters using (use param).
Diffstat (limited to 'stdlib/doloop.tl')
0 files changed, 0 insertions, 0 deletions