summaryrefslogtreecommitdiff
path: root/lisp/progmodes/cc-bytecomp.el
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2015-11-24 22:20:47 +0000
committerAlan Mackenzie <acm@muc.de>2015-11-24 22:20:47 +0000
commitfdc271fab057928d03407ac735c9415fc83247d5 (patch)
treef5e1b07bbc08f8720f84bb5f6baf7fae3c15ff81 /lisp/progmodes/cc-bytecomp.el
parent0805069ae5709dc1b97f7349c4f9a7651f3078e3 (diff)
downloademacs-fdc271fab057928d03407ac735c9415fc83247d5.tar.gz
emacs-fdc271fab057928d03407ac735c9415fc83247d5.tar.bz2
emacs-fdc271fab057928d03407ac735c9415fc83247d5.zip
CC Mode: Eliminate compiler warning messages.
* lisp/progmodes/cc-mode.el (top level): remove compile time declaration of `font-lock-syntactic-keywords' (which CC Mode doesn't use). * lisp/progmodes/cc-awk.el (awk-mode-syntax-table) (c-awk-set-syntax-table-properties): Clarify comments about `font-lock-syntactic-keywords'. * lisp/progmodes/cc-bytecomp.el (cc-bytecomp-load): Create a dummy declaration of this before the real (interpreted) one, to satisfy the byte compiler.
Diffstat (limited to 'lisp/progmodes/cc-bytecomp.el')
-rw-r--r--lisp/progmodes/cc-bytecomp.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/progmodes/cc-bytecomp.el b/lisp/progmodes/cc-bytecomp.el
index ab53c39fbde..1470b080264 100644
--- a/lisp/progmodes/cc-bytecomp.el
+++ b/lisp/progmodes/cc-bytecomp.el
@@ -252,6 +252,11 @@ perhaps a `cc-bytecomp-restore-environment' is forgotten somewhere"))
(cc-bytecomp-debug-msg
"cc-bytecomp-restore-environment: Done"))))
+(defun cc-bytecomp-load (cc-part)
+ ;; A dummy function which will immediately be overwritten by the
+ ;; following at load time. This should suppress the byte compiler
+ ;; error that the function is "not known to be defined".
+)
(eval
;; This eval is to avoid byte compilation of the function below.
;; There's some bug in XEmacs 21.4.6 that can cause it to dump core