Re: [Q] Muffling compiler notes

Raymond Toy <[email protected]> Sat, 13 Nov 2010 14:35:35 -0500
Newsgroups gmane.lisp.cmucl.general
Message-ID <[email protected]>
On 11/13/10 9:34 AM, Didier Verna wrote:
>   Hello,
>
> is there a way to locally (inside a specific function) shut up compiler
> notes like the following one ?
>
> ;   (UNIX:UNIX-IOCTL (SYSTEM:FD-STREAM-FD #) UNIX:TIOCGWINSZ WINSIZE)
> ; --> WINSIZE ALIEN::LOCAL-ALIEN ALIEN::EXTRACT-ALIEN-VALUE ALIEN::NATURALIZE 
> ; ==>
> ;   (ALIEN::%SAP-ALIEN ALIEN:ALIEN '#<ALIEN::ALIEN-RECORD-TYPE #>)
> ; Note: Unable to optimize because:
> ;     Could not optimize away %SAP-ALIEN: forced to do runtime 
> ; allocation of alien-value structure.

Currently, you have two options.  Option 1:  compile with speed < 3. 
Option 2:  use (declare (optimize (ext:inhibit-warnings 3))).  You
could, of course, use either option 1 or 2, wrapped inside a LOCALLY
wrapped around your call to unix-ioctl.

Ray

_______________________________________________
cmucl-help mailing list
[email protected]
http://lists.zs64.net/mailman/listinfo/cmucl-help