changeset 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 c717580e7817
children 370f231ade90
files lisp/progmodes/cc-bytecomp.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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)