[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiler warnings



In article <9132722.7051@mulga.cs.mu.OZ.AU> caw@cs.mu.OZ.AU (Chris Wright) writes:
>I have an application (in MCL 2.something - latest patch). It works fine
>but the compiler warnings are driving me KNUTZ.
>	;Compiler warnings :
>		; Unused lexical variable Foo, in an anonymous lambda form.
>I've tried (setq *compiler-warnings nil).
>
>What's the trick... I KNOW Foo is unused...I"m going to use it later.

Put (declare (ignore foo)) at the beginning of the body of the form that
binds the variable.  Later, when you add the reference to foo, take the
declaration out.
-- 
Barry Margolin, Thinking Machines Corp.

barmar@think.com
{uunet,harvard}!think!barmar