]> git.eshelyaron.com Git - emacs.git/commitdiff
Silence byte-compiler warnings from absent optional features
authorMattias Engdegård <mattiase@acm.org>
Mon, 20 Dec 2021 16:13:09 +0000 (17:13 +0100)
committerMattias Engdegård <mattiase@acm.org>
Mon, 20 Dec 2021 16:13:09 +0000 (17:13 +0100)
* 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.

test/src/inotify-tests.el
test/src/lcms-tests.el
test/src/sqlite-tests.el

index 70330ac86579e8acc03ee30e1e7954bc925b3b9f..ea1951b88986e6ef6424a57d60c5c66b59d8898b 100644 (file)
@@ -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'."
index d2d137e9bd563c49ff0004d421bdc6623d128b10..bffeba762ac0a1906f58bd11b2b056ee46ad8295 100644 (file)
 (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.")
 
index 27ba74e9d23bdec240390c9134b65614be815af9..d7100537a4ee9ba38d54796cb07f2f4a8ab8ee6c 100644 (file)
@@ -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))