Changeset 152


Ignore:
Timestamp:
05/14/06 13:56:19 (19 years ago)
Author:
Erik Huelsmann
Message:

Fix SBCL compile warnings, at least one of which was a bug.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/event.lisp

    r149 r152  
    130130  (let* ((connection (connection message)))
    131131    (destructuring-bind
    132         (nick chan-mode channel names)
     132        (nick chan-visibility channel names)
    133133        (arguments message)
     134      (declare (ignore nick chan-visibility))
     135      ;; chan-visibility is (member '= '@ '*)
     136      ;; '= == public
     137      ;; '@ == secret
     138      ;; '* == private
    134139      (let ((channel (find-channel connection channel)))
    135140        (unless (has-mode-p channel 'namreply-in-progress)
     
    206211        (channel &optional text)
    207212        arguments
     213      (declare (ignore text))
    208214      (let ((channel (find-channel connection channel))
    209215            (user (find-user connection source)))
     
    226232        (target channel &rest mode-arguments)
    227233        arguments
    228     (declare (ignore target))
    229234    (let* ((channel (find-channel connection channel))
    230235           (mode-changes
    231236            (when channel
    232               (parse-mode-arguments connection channel arguments
     237              (parse-mode-arguments connection channel mode-arguments
    233238                                    :server-p (user connection)))))
    234239      (dolist (change mode-changes)
     
    282287        (channel nick &optional reason)
    283288        arguments
    284       (declare (ignore arguments))
     289      (declare (ignore reason))
    285290      (let* ((channel (find-channel connection channel))
    286291             (user (find-user connection nick)))
  • TabularUnified trunk/protocol.lisp

    r151 r152  
    261261
    262262(defmethod start-process (function name)
     263  (declare (ignorable name))
    263264  #+allegro (mp:process-run-function name function)
    264265  #+cmu (mp:make-process function :name name)
     
    274275           (do-loop () (read-message-loop connection)))
    275276    (let ((name (format nil "irc-hander-~D" (incf *process-count*))))
     277      (declare (ignorable name))
    276278      #+(or allegro cmu lispworks sb-thread openmcl armedbear)
    277279      (start-process #'do-loop name)
     
    293295(defun stop-background-message-handler (process)
    294296  "Stops a background message handler process returned by the start function."
     297  (declare (ignorable process))
    295298    #+cmu (mp:destroy-process process)
    296299    #+allegro (mp:process-kill process)
  • TabularUnified trunk/utility.lisp

    r151 r152  
    122122                      (if non-blocking #'read-byte-no-hang #'read-byte)
    123123                    (if non-blocking #'read-char-no-hang #'read-char)))
    124         (limit-pos 0)
     124        (limit-vector (coerce limit '(vector * t)))
    125125        (targ-max (1- (length target)))
    126126        (limit-max (length limit))
    127127        (limit-cur 0)
    128128        (targ-cur -1))
    129     (declare (optimize (speed 3) (debug 0)))
     129    (declare (optimize (speed 3) (debug 0))
     130             (type fixnum targ-cur))
    130131    ;; In SBCL read-char is a buffered operations (depending on
    131132    ;; stream creation parameters), so this loop should be quite efficient
     
    136137          else do
    137138          (setf (elt target (incf targ-cur)) next-elt)
    138           (if (eql next-elt (elt limit limit-cur))
     139          (if (eql next-elt (aref limit-vector limit-cur))
    139140              (incf limit-cur)
    140141            (setf limit-cur 0))
Note: See TracChangeset for help on using the changeset viewer.