summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2021-12-20 17:13:09 +0100
committerMattias EngdegÄrd <mattiase@acm.org>2021-12-20 17:13:09 +0100
commit19206fd1e764cfe89234ae9245bafa88ef1ec354 (patch)
tree31b689c4b6d245d31b79086047563375199d3bd3
parent92ffe44834b8f77ee3f4d37edfdb19f30a376869 (diff)
downloademacs-19206fd1e764cfe89234ae9245bafa88ef1ec354.tar.gz
Silence byte-compiler warnings from absent optional features
* test/src/inotify-tests.el (inotify-rm-watch): * test/src/lcms-tests.el (lcms-xyz->jch): * test/src/sqlite-tests.el (sqlite-open): Add declarations to prevent byte-compilation warnings when features are absent.
-rw-r--r--test/src/inotify-tests.el1
-rw-r--r--test/src/lcms-tests.el7
-rw-r--r--test/src/sqlite-tests.el1
3 files changed, 9 insertions, 0 deletions
diff --git a/test/src/inotify-tests.el b/test/src/inotify-tests.el
index 70330ac8657..ea1951b8898 100644
--- a/test/src/inotify-tests.el
+++ b/test/src/inotify-tests.el
@@ -28,6 +28,7 @@
(declare-function inotify-add-watch "inotify.c" (file-name aspect callback))
(declare-function inotify-rm-watch "inotify.c" (watch-descriptor))
+(declare-function inotify-valid-p "inotify.c" (watch-descriptor))
(ert-deftest inotify-valid-p-simple ()
"Simple tests for `inotify-valid-p'."
diff --git a/test/src/lcms-tests.el b/test/src/lcms-tests.el
index d2d137e9bd5..bffeba762ac 100644
--- a/test/src/lcms-tests.el
+++ b/test/src/lcms-tests.el
@@ -35,6 +35,13 @@
(require 'ert)
(require 'color)
+(declare-function lcms-jab->jch "lcms.c")
+(declare-function lcms-jch->jab "lcms.c")
+(declare-function lcms-xyz->jch "lcms.c")
+(declare-function lcms-jch->xyz "lcms.c")
+(declare-function lcms-temp->white-point "lcms.c")
+(declare-function lcms-cam02-ucs "lcms.c")
+
(defconst lcms-colorspacious-d65 '(0.95047 1.0 1.08883)
"D65 white point from colorspacious.")
diff --git a/test/src/sqlite-tests.el b/test/src/sqlite-tests.el
index 27ba74e9d23..d7100537a4e 100644
--- a/test/src/sqlite-tests.el
+++ b/test/src/sqlite-tests.el
@@ -35,6 +35,7 @@
(declare-function sqlite-more-p "sqlite.c")
(declare-function sqlite-select "sqlite.c")
(declare-function sqlite-open "sqlite.c")
+(declare-function sqlite-load-extension "sqlite.c")
(ert-deftest sqlite-select ()
(skip-unless (sqlite-available-p))