emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 19206fd: Silence byte-compiler warnings from absent optional feat


From: Mattias Engdegård
Subject: master 19206fd: Silence byte-compiler warnings from absent optional features
Date: Mon, 20 Dec 2021 11:15:55 -0500 (EST)

branch: master
commit 19206fd1e764cfe89234ae9245bafa88ef1ec354
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>

    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 70330ac..ea1951b 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 d2d137e..bffeba7 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 27ba74e..d710053 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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]