aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Corallo2020-10-12 21:25:00 +0200
committerAndrea Corallo2020-10-12 21:25:00 +0200
commita3304feb9be1489036574fdac2a4a3e4e7a0c38a (patch)
tree3e57f9e2f1dc05caa069bd3a176b1e27cd372aee
parent6606ec8e313bf48a1ac7b63c52bfeb64c4257107 (diff)
downloademacs-a3304feb9be1489036574fdac2a4a3e4e7a0c38a.tar.gz
emacs-a3304feb9be1489036574fdac2a4a3e4e7a0c38a.zip
Revert "Fix some compilation warnings in non nativecomp build (bug#43892)"
This reverts commit 6606ec8e313bf48a1ac7b63c52bfeb64c4257107.
-rw-r--r--lisp/emacs-lisp/advice.el2
-rw-r--r--lisp/emacs-lisp/find-func.el2
-rw-r--r--lisp/emacs-lisp/nadvice.el2
-rw-r--r--lisp/files.el2
-rw-r--r--lisp/help.el2
5 files changed, 0 insertions, 10 deletions
diff --git a/lisp/emacs-lisp/advice.el b/lisp/emacs-lisp/advice.el
index 509e2551914..fb67de3a029 100644
--- a/lisp/emacs-lisp/advice.el
+++ b/lisp/emacs-lisp/advice.el
@@ -2052,8 +2052,6 @@ in that CLASS."
2052 function class name))) 2052 function class name)))
2053 (error "ad-remove-advice: `%s' is not advised" function))) 2053 (error "ad-remove-advice: `%s' is not advised" function)))
2054 2054
2055(declare-function comp-subr-trampoline-install "comp")
2056
2057;;;###autoload 2055;;;###autoload
2058(defun ad-add-advice (function advice class position) 2056(defun ad-add-advice (function advice class position)
2059 "Add a piece of ADVICE to FUNCTION's list of advices in CLASS. 2057 "Add a piece of ADVICE to FUNCTION's list of advices in CLASS.
diff --git a/lisp/emacs-lisp/find-func.el b/lisp/emacs-lisp/find-func.el
index 4417082971f..9e4d8cf1aa8 100644
--- a/lisp/emacs-lisp/find-func.el
+++ b/lisp/emacs-lisp/find-func.el
@@ -178,8 +178,6 @@ See the functions `find-function' and `find-variable'."
178 (setq name rel)))) 178 (setq name rel))))
179 (unless (equal name library) name))) 179 (unless (equal name library) name)))
180 180
181(defvar comp-eln-to-el-h)
182
183(defun find-library-name (library) 181(defun find-library-name (library)
184 "Return the absolute file name of the Emacs Lisp source of LIBRARY. 182 "Return the absolute file name of the Emacs Lisp source of LIBRARY.
185LIBRARY should be a string (the name of the library)." 183LIBRARY should be a string (the name of the library)."
diff --git a/lisp/emacs-lisp/nadvice.el b/lisp/emacs-lisp/nadvice.el
index e68c1356081..8b60c08440b 100644
--- a/lisp/emacs-lisp/nadvice.el
+++ b/lisp/emacs-lisp/nadvice.el
@@ -316,8 +316,6 @@ is also interactive. There are 3 cases:
316 `(advice--add-function ,where (gv-ref ,(advice--normalize-place place)) 316 `(advice--add-function ,where (gv-ref ,(advice--normalize-place place))
317 ,function ,props)) 317 ,function ,props))
318 318
319(declare-function comp-subr-trampoline-install "comp")
320
321;;;###autoload 319;;;###autoload
322(defun advice--add-function (where ref function props) 320(defun advice--add-function (where ref function props)
323 (when (and (featurep 'nativecomp) 321 (when (and (featurep 'nativecomp)
diff --git a/lisp/files.el b/lisp/files.el
index 1d330ce87bf..833a188b03b 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -900,8 +900,6 @@ recursion."
900 (read-file-name "Load file: " nil nil 'lambda)))) 900 (read-file-name "Load file: " nil nil 'lambda))))
901 (load (expand-file-name file) nil nil t)) 901 (load (expand-file-name file) nil nil t))
902 902
903(defvar comp-eln-to-el-h)
904
905(defun locate-file (filename path &optional suffixes predicate) 903(defun locate-file (filename path &optional suffixes predicate)
906 "Search for FILENAME through PATH. 904 "Search for FILENAME through PATH.
907If found, return the absolute file name of FILENAME; otherwise 905If found, return the absolute file name of FILENAME; otherwise
diff --git a/lisp/help.el b/lisp/help.el
index 1a3fd35e44e..c166b63a56f 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -1320,8 +1320,6 @@ ARGLIST can also be t or a string of the form \"(FUN ARG1 ARG2 ...)\"."
1320 (error "Unrecognized usage format")) 1320 (error "Unrecognized usage format"))
1321 (help--make-usage-docstring 'fn arglist))))) 1321 (help--make-usage-docstring 'fn arglist)))))
1322 1322
1323(declare-function subr-native-lambda-list "data.c")
1324
1325(defun help-function-arglist (def &optional preserve-names) 1323(defun help-function-arglist (def &optional preserve-names)
1326 "Return a formal argument list for the function DEF. 1324 "Return a formal argument list for the function DEF.
1327If PRESERVE-NAMES is non-nil, return a formal arglist that uses 1325If PRESERVE-NAMES is non-nil, return a formal arglist that uses