diff options
| author | Richard M. Stallman | 2002-12-04 11:46:31 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-12-04 11:46:31 +0000 |
| commit | c0316672c0d4555f47fe6c748e382e3617af4e5f (patch) | |
| tree | 5b4fc720b2668d057ca36f213a000182ad1027f4 | |
| parent | 612221ab83f69a690595eb83eab0e2e606493279 (diff) | |
| download | emacs-c0316672c0d4555f47fe6c748e382e3617af4e5f.tar.gz emacs-c0316672c0d4555f47fe6c748e382e3617af4e5f.zip | |
(cc-bytecomp-obsolete-var): Add an else-clause to the if to avoid
confused compiler warning.
| -rw-r--r-- | lisp/progmodes/cc-bytecomp.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/progmodes/cc-bytecomp.el b/lisp/progmodes/cc-bytecomp.el index b0e33a97491..39347415bd1 100644 --- a/lisp/progmodes/cc-bytecomp.el +++ b/lisp/progmodes/cc-bytecomp.el | |||
| @@ -266,7 +266,10 @@ the file. Don't use outside `eval-when-compile'." | |||
| 266 | Don't use within `eval-when-compile'." | 266 | Don't use within `eval-when-compile'." |
| 267 | `(eval-when-compile | 267 | `(eval-when-compile |
| 268 | (if (get ',symbol 'byte-obsolete-variable) | 268 | (if (get ',symbol 'byte-obsolete-variable) |
| 269 | (cc-bytecomp-put ',symbol 'byte-obsolete-variable nil)))) | 269 | (cc-bytecomp-put ',symbol 'byte-obsolete-variable nil) |
| 270 | ;; This avoids a superfluous compiler warning | ||
| 271 | ;; about calling `get' for effect. | ||
| 272 | t))) | ||
| 270 | 273 | ||
| 271 | (defun cc-bytecomp-ignore-obsolete (form) | 274 | (defun cc-bytecomp-ignore-obsolete (form) |
| 272 | ;; Wraps a call to `byte-compile-obsolete' that suppresses the warning. | 275 | ;; Wraps a call to `byte-compile-obsolete' that suppresses the warning. |