"William Conrad Halliburton" <[EMAIL PROTECTED]> writes: > Also is it possible to catch or suppress the compiler warnings. As in > > (let (foobar) ()) > > In: LET (FOOBAR) > (LET (FOOBAR) > NIL) > Note: Variable FOOBAR defined but never used.
The portable, ANSI-defined way of silencing this particular warning is to include an ignore or ignorable declaration for the given variable, e.g.: (let (foobar) (declare (ignorable foobar)) ()) See the HyperSpec for details on those declarations. For the more general problem of ignoring warnings, etc., CMUCL also offers the ext:inhibit-warnings optimization quality, which can be set to higher values to inhibit ever more warnings. IIRC this is documented in the CMUCL User Manual. E.g. compiling the following file will not issue any warnings: (declaim (optimize (ext:inhibit-warnings 3))) (defun demofun () (* x x)) Regs, Pierre. -- Pierre R. Mai <[EMAIL PROTECTED]> http://www.pmsf.de/pmai/ The most likely way for the world to be destroyed, most experts agree, is by accident. That's where we come in; we're computer professionals. We cause accidents. -- Nathaniel Borenstein
