From 19206fd1e764cfe89234ae9245bafa88ef1ec354 Mon Sep 17 00:00:00 2001 From: Mattias EngdegÄrd Date: Mon, 20 Dec 2021 17:13:09 +0100 Subject: 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. --- test/src/inotify-tests.el | 1 + test/src/lcms-tests.el | 7 +++++++ test/src/sqlite-tests.el | 1 + 3 files changed, 9 insertions(+) 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)) -- cgit v1.2.3