[cmucl-help] [Q] Muffling compiler notes
Raymond Toy
toy.raymond at gmail.com
Sat Nov 13 20:35:35 CET 2010
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
More information about the cmucl-help
mailing list