views:

85

answers:

3

How do I disable all warnings in sbcl? The extra output is rather annoying.

+1  A: 

You probably want to look at SB-EXT:MUFFLE-CONDITIONS.

Pillsy
Where are the different conditions which can be muffled? I want to muffle all style warnings, and the this documentation is weak.
Stefan Kendall
+5  A: 

You can either use SB-EXT:MUFFLE-CONDITIONS as Pillsy said, the other alternative is to read through the warnings and use them to modify your code to remove the warnings. Especially if they're actually warnings (rather than, say, optimization notes).

Vatine
+1  A: 

this is what i use to muffle both compile-time and runtime (load-time) redefinition warnings:

(locally
    (declare #+sbcl(sb-ext:muffle-conditions sb-kernel:redefinition-warning))
  (handler-bind
      (#+sbcl(sb-kernel:redefinition-warning #'muffle-warning))
    ;; stuff that emits redefinition-warning's
    ))

following this pattern you can install these handlers on superclasses like cl:style-warning to muffle all style warnings.

Attila Lendvai