[Ecls-list] Bogus "Removing unused variable" note

Tobias C. Rittweiler tcr at freebits.de
Sat Feb 6 23:55:18 UTC 2010


;;; /tmp/frob.lisp

(defmacro macro ((&rest ignore) &body body)
  "Foof"
  (declare (ignore ignore))
  `(progn , at body))


CL-USER> (compile-file "/tmp/frob.lisp")
;;; Compiling /tmp/frob.lisp.
;;; OPTIMIZE levels: Safety=3, Space=0, Speed=1, Debug=3
;;; Compiling (DEFMACRO MACRO ...).
;;; Note: in file /tmp/frob.lisp, position 0, and form 
;;;   (FSET 'MACRO #'(LAMBDA-BLOCK MACRO # ...) ...)
;;; Removing unused variable IGNORE
;;; End of Pass 1.
;;; Emitting code for MACRO.
;;; Note: Invoking external command:
;;;   gcc "-I/home/tcr/software/ecl-git/include/"  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -fPIC  -D_THREAD_SAFE -Dlinux  -w -c "/tmp/frob.c" -o "/tmp/frob.o"
;;; Note: Invoking external command:
;;;   gcc -o "/tmp/frob.fas" -L"/home/tcr/software/ecl-git/lib/" "/tmp/frob.o"   -shared    -lecl  -lgmp -lpthread -ldl  -lm 
;;; Finished compiling /tmp/frob.lisp.


I forgot to mention: This is 10.2.1, compiled yesterday, or two days ago
from git.

  -T.





More information about the ecl-devel mailing list