]> git.eshelyaron.com Git - emacs.git/commitdiff
semantic/senator.el byte compilation fix
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 13 Jun 2019 14:58:58 +0000 (16:58 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 13 Jun 2019 14:58:58 +0000 (16:58 +0200)
* lisp/cedet/semantic/senator.el (semantic/analyze): Require to
avoid compilation warnings about unknown slots, and remove
declare-function.

lisp/cedet/semantic/senator.el

index 2462662bbd8f563248d5ef186f2b497e5b6b8bb7..2d858dd985128f6e0aed2250fdc94a0567afad47 100644 (file)
@@ -36,6 +36,7 @@
 (require 'semantic/ctxt)
 (require 'semantic/decorate)
 (require 'semantic/format)
+(require 'semantic/analyze)
 
 (eval-when-compile (require 'semantic/find))
 
@@ -43,7 +44,6 @@
 
 (declare-function semantic-analyze-tag-references "semantic/analyze/refs")
 (declare-function semantic-analyze-refs-impl "semantic/analyze/refs")
-(declare-function semantic-analyze-find-tag "semantic/analyze")
 (declare-function semantic-analyze-tag-type "semantic/analyze/fcn")
 (declare-function semantic-tag-external-class "semantic/sort")
 (declare-function imenu--mouse-menu "imenu")
@@ -594,7 +594,6 @@ Makes C/C++ language like assumptions."
 
        ;; Get the data type, and try to find that.
         ((semantic-tag-type tag)
-        (require 'semantic/analyze)
         (let ((scope (semantic-calculate-scope (point))))
           (semantic-analyze-tag-type tag scope))
         )