<div dir="ltr">Thanks.<div><br></div><div>Here's what I used in the interim:</div><div><br></div><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div>(defun unused-lexical-warning-p (condition)</div><div> (search "Unused lexical" (princ-to-string condition)))</div><div><br></div><div>(deftype unused-lexical-warning ()</div><div> `(satisfies unused-lexical-warning-p))</div><div><br></div><div>(handler-bind ((unused-lexical-warning #'muffle-warning))</div><div> (compile-stuff))</div></div></blockquote></div><div><br></div><div>I'll update UNUSED-LEXICAL-WARNING-P with your suggestion.</div><div><br>Zach</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 17, 2016 at 7:41 PM, Gail Zacharias <span dir="ltr"><<a href="mailto:gz@clozure.com" target="_blank">gz@clozure.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Something like this (untested): </div><div><br></div><div><font face="monospace, monospace">(handler-bind</font></div><div><font face="monospace, monospace"> ((ccl:compiler-warning</font></div><div><font face="monospace, monospace"> (lambda (c)</font></div><div><font face="monospace, monospace"> (when (eq (ccl::compiler-warning-<wbr>warning-type c) :unused)</font></div><div><font face="monospace, monospace"> (muffle-warning c)))))</font></div><div><font face="monospace, monospace"> (compile-my-system))</font></div><div><font face="monospace, monospace"><br></font></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Thu, Nov 17, 2016 at 1:43 PM, Zach Beane <span dir="ltr"><<a href="mailto:xach@xach.com" target="_blank">xach@xach.com</a>></span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><div dir="ltr">Is there an easy way to muffle "unused lexical variable" notices during compilation? I know they are useful, but I am working on a project that has more important warnings to deal with, so the lexical variable notices are obscuring things. <span class="m_238461098793709939HOEnZb"><font color="#888888"><div><br><div>Zach</div><div><br></div></div></font></span></div>
<br></span><span class="">______________________________<wbr>_________________<br>
Openmcl-devel mailing list<br>
<a href="mailto:Openmcl-devel@clozure.com" target="_blank">Openmcl-devel@clozure.com</a><br>
<a href="https://lists.clozure.com/mailman/listinfo/openmcl-devel" rel="noreferrer" target="_blank">https://lists.clozure.com/mail<wbr>man/listinfo/openmcl-devel</a><br>
<br></span></blockquote></div><br></div>
</blockquote></div><br></div>