diff options
author | Stefan Kangas <stefan@marxist.se> | 2021-12-21 18:04:33 +0100 |
---|---|---|
committer | Stefan Kangas <stefan@marxist.se> | 2021-12-21 18:04:33 +0100 |
commit | 11c2ffddc9fe039fe2b729818922d35a6e8a0369 (patch) | |
tree | 84a3fccb3613528ee58aa5352efde8db0f0aa398 /lisp | |
parent | 32a764e106cb6ffbf5f596478d8318e256db58d7 (diff) | |
download | emacs-11c2ffddc9fe039fe2b729818922d35a6e8a0369.tar.gz emacs-11c2ffddc9fe039fe2b729818922d35a6e8a0369.tar.bz2 emacs-11c2ffddc9fe039fe2b729818922d35a6e8a0369.zip |
Declare functions to silence byte-compiler
* 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.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/auth-source.el | 3 | ||||
-rw-r--r-- | lisp/net/dbus.el | 1 | ||||
-rw-r--r-- | lisp/simple.el | 2 | ||||
-rw-r--r-- | lisp/thread.el | 7 |
4 files changed, 13 insertions, 0 deletions
diff --git a/lisp/auth-source.el b/lisp/auth-source.el index 3c1a6feaeeb..8c5b5564e7e 100644 --- a/lisp/auth-source.el +++ b/lisp/auth-source.el @@ -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") diff --git a/lisp/net/dbus.el b/lisp/net/dbus.el index 411249767f5..9e5d652cf0f 100644 --- a/lisp/net/dbus.el +++ b/lisp/net/dbus.el @@ -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) diff --git a/lisp/simple.el b/lisp/simple.el index b217aeb49ce..6d46fc19aaa 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -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." diff --git a/lisp/thread.el b/lisp/thread.el index efb058c4361..10b88dd93a1 100644 --- a/lisp/thread.el +++ b/lisp/thread.el @@ -30,6 +30,13 @@ (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'. |