diff options
| author | Stefan Kangas | 2021-12-21 18:04:33 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2021-12-21 18:04:33 +0100 |
| commit | 11c2ffddc9fe039fe2b729818922d35a6e8a0369 (patch) | |
| tree | 84a3fccb3613528ee58aa5352efde8db0f0aa398 /test/src | |
| parent | 32a764e106cb6ffbf5f596478d8318e256db58d7 (diff) | |
| download | emacs-11c2ffddc9fe039fe2b729818922d35a6e8a0369.tar.gz 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 'test/src')
| -rw-r--r-- | test/src/decompress-tests.el | 2 | ||||
| -rw-r--r-- | test/src/process-tests.el | 4 | ||||
| -rw-r--r-- | test/src/xml-tests.el | 2 |
3 files changed, 8 insertions, 0 deletions
diff --git a/test/src/decompress-tests.el b/test/src/decompress-tests.el index 1d25cf2f66b..708d91487e5 100644 --- a/test/src/decompress-tests.el +++ b/test/src/decompress-tests.el | |||
| @@ -23,6 +23,8 @@ | |||
| 23 | 23 | ||
| 24 | (require 'ert) | 24 | (require 'ert) |
| 25 | 25 | ||
| 26 | (declare-function zlib-decompress-region "decompress.c") | ||
| 27 | |||
| 26 | (defvar zlib-tests-data-directory | 28 | (defvar zlib-tests-data-directory |
| 27 | (expand-file-name "data/decompress" (getenv "EMACS_TEST_DIRECTORY")) | 29 | (expand-file-name "data/decompress" (getenv "EMACS_TEST_DIRECTORY")) |
| 28 | "Directory containing zlib test data.") | 30 | "Directory containing zlib test data.") |
diff --git a/test/src/process-tests.el b/test/src/process-tests.el index f14a460d1a5..baa825778a4 100644 --- a/test/src/process-tests.el +++ b/test/src/process-tests.el | |||
| @@ -31,6 +31,10 @@ | |||
| 31 | (require 'dns) | 31 | (require 'dns) |
| 32 | (require 'url-http) | 32 | (require 'url-http) |
| 33 | 33 | ||
| 34 | (declare-function thread-last-error "thread.c") | ||
| 35 | (declare-function thread-join "thread.c") | ||
| 36 | (declare-function make-thread "thread.c") | ||
| 37 | |||
| 34 | ;; Timeout in seconds; the test fails if the timeout is reached. | 38 | ;; Timeout in seconds; the test fails if the timeout is reached. |
| 35 | (defvar process-test-sentinel-wait-timeout 2.0) | 39 | (defvar process-test-sentinel-wait-timeout 2.0) |
| 36 | 40 | ||
diff --git a/test/src/xml-tests.el b/test/src/xml-tests.el index 7c4ca396f70..62d9e3ff7e7 100644 --- a/test/src/xml-tests.el +++ b/test/src/xml-tests.el | |||
| @@ -27,6 +27,8 @@ | |||
| 27 | 27 | ||
| 28 | (require 'ert) | 28 | (require 'ert) |
| 29 | 29 | ||
| 30 | (declare-function libxml-parse-xml-region "xml.c") | ||
| 31 | |||
| 30 | (defvar libxml-tests--data-comments-preserved | 32 | (defvar libxml-tests--data-comments-preserved |
| 31 | `(;; simple case | 33 | `(;; simple case |
| 32 | ("<?xml version=\"1.0\"?><foo baz=\"true\">bar</foo>" | 34 | ("<?xml version=\"1.0\"?><foo baz=\"true\">bar</foo>" |