Skip to content

Commit

Permalink
Fix: avoid unused variable style warnings
Browse files Browse the repository at this point in the history
Some variables are removed and some are ignored.
  • Loading branch information
kilianmh committed Apr 29, 2024
1 parent 174ec12 commit 9d35471
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/core/class/column.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
(defmethod initialize-instance :around ((class table-column-class) &rest rest-initargs
&key name initargs ghost
&allow-other-keys)

(declare (ignore ghost))
(unless (find (symbol-name name) initargs :test #'string=)
;; Add the default initarg.
(push (intern (symbol-name name) :keyword)
Expand Down
6 changes: 3 additions & 3 deletions src/core/dao/mixin.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
(setf calledp t
(slot-value object slot-name) foreign-object)))))))))

(defun add-relational-readers (class initargs)
(defun add-relational-readers (class)
(loop for column in (table-direct-column-slots class)
for col-type = (table-column-type column)
when (and (symbolp col-type)
Expand All @@ -131,14 +131,14 @@
&key conc-name &allow-other-keys)
(let ((*conc-name* (first conc-name)))
(let ((class (apply #'call-next-method class initargs)))
(add-relational-readers class initargs)
(add-relational-readers class)
class)))

(defmethod reinitialize-instance :around ((class dao-table-mixin) &rest initargs
&key conc-name &allow-other-keys)
(let ((*conc-name* (first conc-name)))
(let ((class (apply #'call-next-method class initargs)))
(add-relational-readers class initargs)
(add-relational-readers class)
class)))

(defclass serial-pk-mixin ()
Expand Down
2 changes: 1 addition & 1 deletion src/core/logger.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
(do ((frame (sb-di:frame-down (sb-di:top-frame))
(sb-di:frame-down frame)))
((null frame))
(multiple-value-bind (call args info)
(multiple-value-bind (call)
(sb-debug::frame-call frame)
(let ((call (normalize-call call)))
(when (users-call-p call)
Expand Down

0 comments on commit 9d35471

Please sign in to comment.