Mercurial > emacs
diff lisp/progmodes/cc-bytecomp.el @ 85725:e177256e1ca2
(cc-bytecomp-ignore-obsolete): Use byte-compile-disable-warning.
| author | Glenn Morris <rgm@gnu.org> |
|---|---|
| date | Sun, 28 Oct 2007 23:50:30 +0000 |
| parents | c1ec1c8a8d2e |
| children | 107ccd98fa12 880960b70474 |
line wrap: on
line diff
--- a/lisp/progmodes/cc-bytecomp.el Sun Oct 28 17:39:49 2007 +0000 +++ b/lisp/progmodes/cc-bytecomp.el Sun Oct 28 23:50:30 2007 +0000 @@ -395,8 +395,8 @@ (defun cc-bytecomp-ignore-obsolete (form) ;; Wraps a call to `byte-compile-obsolete' that suppresses the warning. - (let ((byte-compile-warnings - (delq 'obsolete (append byte-compile-warnings nil)))) + (let ((byte-compile-warnings byte-compile-warnings)) + (byte-compile-disable-warning 'obsolete) (byte-compile-obsolete form))) (defmacro cc-bytecomp-obsolete-fun (symbol)
