From b5ae9d611ffe002ecdb5d19d926b952857cd26c4 Mon Sep 17 00:00:00 2001 From: "Kevin M. Rosenberg" Date: Sun, 31 Dec 2006 18:41:29 +0000 Subject: [PATCH] r11420: avoid compiler warnings --- mop.lisp | 25 ++++++++++--------------- views.lisp | 1 + 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/mop.lisp b/mop.lisp index bade54a..2ccf8d6 100644 --- a/mop.lisp +++ b/mop.lisp @@ -112,13 +112,7 @@ t) (defmethod finalize-inheritance :after ((cl hyperobject-class)) - ;; Work-around needed for OpenMCL - #+ignore - (unless (find-class (class-name cl)) - (setf (find-class (class-name cl)) cl)) - - (init-hyperobject-class cl) - ) + (init-hyperobject-class cl)) (eval-when (:compile-toplevel :load-toplevel :execute) (when (>= (length (generic-function-lambda-list @@ -139,16 +133,16 @@ 3) (pushnew :ho-normal-esdc cl:*features*))) -;; Slot definitions (defmethod direct-slot-definition-class ((cl hyperobject-class) #+ho-normal-dsdc &rest iargs) + (declare (ignore iargs)) (find-class 'hyperobject-dsd)) (defmethod effective-slot-definition-class ((cl hyperobject-class) #+ho-normal-esdc &rest iargs) + (declare (ignore iargs)) (find-class 'hyperobject-esd)) - ;;; Slot definitions (eval-when (:compile-toplevel :load-toplevel :execute) @@ -237,18 +231,18 @@ (do* ((parsed (list obj)) (name (first initargs) (first initargs)) (val (second initargs) (second initargs))) - ((null initargs) - (apply #'call-next-method parsed)) + ((null initargs) + (apply #'call-next-method parsed)) (if (eql name :value-type) (progn (setq val (canonicalize-value-type val)) (setq parsed (append parsed (list name val))) (setq parsed (append parsed (list :type (value-type-to-lisp-type - (canonicalize-value-type val)))))) - (setq parsed (append parsed (list name val)))) + (canonicalize-value-type val)))))) + (setq parsed (append parsed (list name val)))) (setq initargs (cddr initargs)))) - + (defmethod compute-effective-slot-definition :around ((cl hyperobject-class) #+ho-normal-cesd name dsds) @@ -266,7 +260,7 @@ (setf (esd-sql-length esd) sql-length)) (setf (esd-user-name esd) (aif (dsd-user-name dsd) - it + it (string-downcase (symbol-name (slot-definition-name dsd))))) (setf (esd-sql-name esd) (aif (dsd-sql-name dsd) @@ -395,6 +389,7 @@ SQL name" ;; is also returned. (defun ensure-lazy-reader (cl class-name slot-name subobj-class reader &rest reader-keys) + (declare (ignore class-name)) (setf (getf (gethash cl *lazy-readers*) slot-name) (aif subobj-class it diff --git a/views.lisp b/views.lisp index 91217bd..bc93bd9 100644 --- a/views.lisp +++ b/views.lisp @@ -163,6 +163,7 @@ &rest initargs &key &allow-other-keys) + (declare (ignore initargs)) (initialize-view self)) (defun initialize-view (view) -- 2.34.1