]> git.eshelyaron.com Git - emacs.git/commitdiff
(cc-bytecomp-ignore-obsolete): Use byte-compile-disable-warning.
authorGlenn Morris <rgm@gnu.org>
Sun, 28 Oct 2007 23:50:30 +0000 (23:50 +0000)
committerGlenn Morris <rgm@gnu.org>
Sun, 28 Oct 2007 23:50:30 +0000 (23:50 +0000)
lisp/progmodes/cc-bytecomp.el

index 5a69df4e45769706d91b25a528db9a5159b1d5a6..935cba76fcf3e0baa36f62a7baf2eeed3c20dc7f 100644 (file)
@@ -395,8 +395,8 @@ Don't use within `eval-when-compile'."
 
 (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)