Disable compiler warnings for special variables
Posted: Sun Jun 08, 2014 10:13 am
If I create functions using a undeclared special variable like this
,
the compiler warns me, every time.
The special variables are only defined temporary:
if I used defparameter (/etc.) i could forget to reinitialize the special variables or call the function in the wrong context.
How can I turn off the compiler warnings (in SBCL)?
It would be best to only turn off the warnings for these vars.
Code: Select all
(defun some-special-function ()
(do-something-with *special-variable*))
the compiler warns me, every time.
The special variables are only defined temporary:
Code: Select all
(let ((*special-variable* nil))
(declare (special *special-variable*))
(some-special-function))
How can I turn off the compiler warnings (in SBCL)?
It would be best to only turn off the warnings for these vars.