]> git.eshelyaron.com Git - emacs.git/commitdiff
Declare functions to silence byte-compiler
authorStefan Kangas <stefan@marxist.se>
Tue, 21 Dec 2021 17:04:33 +0000 (18:04 +0100)
committerStefan Kangas <stefan@marxist.se>
Tue, 21 Dec 2021 17:04:33 +0000 (18:04 +0100)
* lisp/auth-source.el (gnutls-symmetric-decrypt, gnutls-ciphers):
* lisp/net/dbus.el (libxml-parse-xml-region):
* lisp/simple.el (thread-name):
* lisp/thread.el (thread-name, thread-signal, thread--blocker)
(current-thread, thread-live-p, all-threads):
* test/lisp/emacs-lisp/multisession-tests.el (sqlite-close):
* test/lisp/net/gnutls-tests.el (gnutls-symmetric-decrypt)
(gnutls-symmetric-encrypt, gnutls-hash-mac, gnutls-hash-digest)
(gnutls-ciphers, gnutls-digests, gnutls-macs):
* test/lisp/net/network-stream-tests.el (gnutls-peer-status):
* test/lisp/net/shr-tests.el (libxml-parse-html-region):
* test/src/decompress-tests.el (zlib-decompress-region):
* test/src/process-tests.el (thread-last-error, thread-join)
(make-thread):
* test/src/xml-tests.el (libxml-parse-xml-region): Declare
functions to silence byte-compiler in --without-all builds.

lisp/auth-source.el
lisp/net/dbus.el
lisp/simple.el
lisp/thread.el
test/lisp/emacs-lisp/multisession-tests.el
test/lisp/net/gnutls-tests.el
test/lisp/net/network-stream-tests.el
test/lisp/net/shr-tests.el
test/src/decompress-tests.el
test/src/process-tests.el
test/src/xml-tests.el

index 3c1a6feaeebe59f9f6e0b41ddf1d9eea128e8617..8c5b5564e7e97c70d6c18068c07df4cb4c843163 100644 (file)
@@ -45,6 +45,9 @@
 (require 'cl-lib)
 (require 'eieio)
 
+(declare-function gnutls-symmetric-decrypt "gnutls.c")
+(declare-function gnutls-ciphers "gnutls.c")
+
 (autoload 'secrets-create-item "secrets")
 (autoload 'secrets-delete-item "secrets")
 (autoload 'secrets-get-alias "secrets")
index 411249767f589a93d28b7c78da8a062d7dc0900b..9e5d652cf0f5878c59db150be134ea59110cac55 100644 (file)
@@ -36,6 +36,7 @@
 ;; Declare used subroutines and variables.
 (declare-function dbus-message-internal "dbusbind.c")
 (declare-function dbus--init-bus "dbusbind.c")
+(declare-function libxml-parse-xml-region "xml.c")
 (defvar dbus-message-type-invalid)
 (defvar dbus-message-type-method-call)
 (defvar dbus-message-type-method-return)
index b217aeb49ce7d91c98578acd103b93660c9cb5ce..6d46fc19aaa897697d6658678864b3efab523e44 100644 (file)
@@ -4702,6 +4702,8 @@ File name handlers might not support pty association, if PROGRAM is nil."
         (forward-line -1)
       (beginning-of-line))))
 
+(declare-function thread-name "thread.c")
+
 (defun list-processes--refresh ()
   "Recompute the list of processes for the Process List buffer.
 Also, delete any process that is exited or signaled."
index efb058c43618090348199cec792ded520d97cfd3..10b88dd93a1686a87b3e1336d5729220a30d2a31 100644 (file)
 (eval-when-compile (require 'pcase))
 (eval-when-compile (require 'subr-x))
 
+(declare-function thread-name "thread.c")
+(declare-function thread-signal "thread.c")
+(declare-function thread--blocker "thread.c")
+(declare-function current-thread "thread.c")
+(declare-function thread-live-p "thread.c")
+(declare-function all-threads "thread.c")
+
 ;;;###autoload
 (defun thread-handle-event (event)
   "Handle thread events, propagated by `thread-signal'.
index 1bf0a533a7085c724f66a5403e81f283ce209200..f1dbbb29fd1eacbb9e480767b25dabb0a44c2140 100644 (file)
@@ -26,6 +26,8 @@
 (require 'ert-x)
 (require 'cl-lib)
 
+(declare-function sqlite-close "sqlite.c")
+
 (ert-deftest multi-test-sqlite-simple ()
   (skip-unless (sqlite-available-p))
   (ert-with-temp-file dir
index 76c00b7eaac117b55e3ab3587a9c2161b9d0b216..f549ecd51dc977e8246e9e02ea470ff7fef719da 100644 (file)
 (require 'gnutls)
 (require 'hex-util)
 
+(declare-function gnutls-symmetric-decrypt "gnutls.c")
+(declare-function gnutls-symmetric-encrypt "gnutls.c")
+(declare-function gnutls-hash-mac "gnutls.c")
+(declare-function gnutls-hash-digest "gnutls.c")
+(declare-function gnutls-ciphers "gnutls.c")
+(declare-function gnutls-digests "gnutls.c")
+(declare-function gnutls-macs "gnutls.c")
+
 (defvar gnutls-tests-message-prefix "")
 
 (defsubst gnutls-tests-message (format-string &rest args)
index 8f5bddb71fa4363405703f5f7b66a9f05036093c..1e1eacb9838ffffce28a3e7ddc99c1ba8c5c4848 100644 (file)
@@ -32,6 +32,8 @@
 ;; it pulls in nsm, which then makes the :nowait t' tests fail unless
 ;; we disable the nsm, which we do by binding 'network-security-level'
 
+(declare-function gnutls-peer-status "gnutls.c")
+
 (ert-deftest make-local-unix-server ()
   (skip-unless (featurep 'make-network-process '(:family local)))
   (let* ((file (make-temp-name "/tmp/server-test"))
index bfb83f251846908e4b12f02f96169ae2c035d858..846ec1a9db263700c7e8c3f595a0903b9510bab5 100644 (file)
@@ -27,6 +27,8 @@
 (require 'ert-x)
 (require 'shr)
 
+(declare-function libxml-parse-html-region "xml.c")
+
 (defun shr-test (name)
   (with-temp-buffer
     (insert-file-contents (format (concat (ert-resource-directory) "/%s.html") name))
index 1d25cf2f66b3b5bcce30b96126cc0931ff9d03e3..708d91487e532694f91301f6b76b47315673bf68 100644 (file)
@@ -23,6 +23,8 @@
 
 (require 'ert)
 
+(declare-function zlib-decompress-region "decompress.c")
+
 (defvar zlib-tests-data-directory
   (expand-file-name "data/decompress" (getenv "EMACS_TEST_DIRECTORY"))
   "Directory containing zlib test data.")
index f14a460d1a531f4ff2bfcb70786a1b25e2808341..baa825778a46b292a0b9531bd020f90eb246003c 100644 (file)
 (require 'dns)
 (require 'url-http)
 
+(declare-function thread-last-error "thread.c")
+(declare-function thread-join "thread.c")
+(declare-function make-thread "thread.c")
+
 ;; Timeout in seconds; the test fails if the timeout is reached.
 (defvar process-test-sentinel-wait-timeout 2.0)
 
index 7c4ca396f70a06c0898f834a896ed0dfdb6a216c..62d9e3ff7e725a7e184c26ad4cea5ef4a56b31bd 100644 (file)
@@ -27,6 +27,8 @@
 
 (require 'ert)
 
+(declare-function libxml-parse-xml-region "xml.c")
+
 (defvar libxml-tests--data-comments-preserved
   `(;; simple case
     ("<?xml version=\"1.0\"?><foo baz=\"true\">bar</foo>"