r11420: avoid compiler warnings
[hyperobject.git] / mop.lisp
index bade54a9e69cf1902d5c0a31e6fe2903fa37bc4c..2ccf8d685a106ae8e51f3111781a90b495ce9442 100644 (file)
--- a/mop.lisp
+++ b/mop.lisp
   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
              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)
   (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)
       (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