Function: with-no-warnings

with-no-warnings is a byte-compiled function defined in byte-run.el.gz.

Signature

(with-no-warnings &rest BODY)

Documentation

Like progn, but prevents compiler warnings in the body.

View in manual

Probably introduced at or before Emacs version 22.1.

Aliases

org-no-warnings (obsolete since 9.0)

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/byte-run.el.gz
(defun with-no-warnings (&rest body)
  "Like `progn', but prevents compiler warnings in the body."
  (declare (indent 0))
  ;; The implementation for the interpreter is basically trivial.
  (car (last body)))