From: Lars Ingebrigtsen Date: Fri, 14 Jun 2019 13:32:33 +0000 (+0200) Subject: srecode/dictionary compilation warning fix X-Git-Tag: emacs-27.0.90~2540 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2604ea84b3b621c79c1982b9889f2b7719daf450;p=emacs.git srecode/dictionary compilation warning fix * lisp/cedet/srecode/dictionary.el (srecode/fields): Require to avoid compilation warning about unknown slot. Remove function declarations that point to that file. --- diff --git a/lisp/cedet/srecode/dictionary.el b/lisp/cedet/srecode/dictionary.el index 8508371d53b..63635e5ccda 100644 --- a/lisp/cedet/srecode/dictionary.el +++ b/lisp/cedet/srecode/dictionary.el @@ -32,6 +32,7 @@ (require 'cl-generic) (require 'srecode) (require 'srecode/table) +(require 'srecode/fields) (eval-when-compile (require 'semantic)) (declare-function srecode-compile-parse-inserter "srecode/compile") @@ -41,7 +42,6 @@ (declare-function srecode-insert-code-stream "srecode/insert") (declare-function data-debug-new-buffer "data-debug") (declare-function data-debug-insert-object-slots "eieio-datadebug") -(declare-function srecode-field "srecode/fields") (defclass srecode-dictionary () ((namehash :initarg :namehash @@ -505,7 +505,6 @@ inserted with a new editable field.") function dictionary) "Convert this field into an insertable string." - (require 'srecode/fields) ;; If we are not in a buffer, then this is not supported. (when (not (bufferp standard-output)) (error "FIELDS invoked while inserting template to non-buffer"))