From 5e0b2841c71db15d83537a4bf40879c744a1b3ad Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Sun, 28 Oct 2007 23:50:30 +0000 Subject: [PATCH] (cc-bytecomp-ignore-obsolete): Use byte-compile-disable-warning. --- lisp/progmodes/cc-bytecomp.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/cc-bytecomp.el b/lisp/progmodes/cc-bytecomp.el index 5a69df4e457..935cba76fcf 100644 --- a/lisp/progmodes/cc-bytecomp.el +++ b/lisp/progmodes/cc-bytecomp.el @@ -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) -- 2.11.4.GIT