diff options
author | Glenn Morris <rgm@gnu.org> | 2007-10-28 23:50:30 +0000 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2007-10-28 23:50:30 +0000 |
commit | 5e0b2841c71db15d83537a4bf40879c744a1b3ad (patch) | |
tree | 29e04a1c9393af4000ecc25e99c54685497761cc /lisp/progmodes/cc-bytecomp.el | |
parent | a7f58f4be274cdabd21419392c1a6ba54661cd2c (diff) | |
download | emacs-5e0b2841c71db15d83537a4bf40879c744a1b3ad.tar.gz |
(cc-bytecomp-ignore-obsolete): Use byte-compile-disable-warning.
Diffstat (limited to 'lisp/progmodes/cc-bytecomp.el')
-rw-r--r-- | lisp/progmodes/cc-bytecomp.el | 4 |
1 files 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) |