summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kangas <stefankangas@gmail.com>2022-09-23 15:14:17 +0200
committerStefan Kangas <stefankangas@gmail.com>2022-09-23 15:19:00 +0200
commit8557ecca5363e9b99371d2a3459da654d4d32fc1 (patch)
treeb4efb0d405df635fe00c47ba131b302bcd5c09e7
parentb306bc5e6deab0a4c1afdd70efd33c0cdf23745f (diff)
downloademacs-8557ecca5363e9b99371d2a3459da654d4d32fc1.tar.gz
emacs-8557ecca5363e9b99371d2a3459da654d4d32fc1.tar.bz2
emacs-8557ecca5363e9b99371d2a3459da654d4d32fc1.zip
; Fix warnings in --without-x build
* lisp/image/image-crop.el (image-scaling-factor) (image-property, image-size, imagep): * test/src/image-tests.el (image-size, image-mask-p) (image-metadata): Declare.
-rw-r--r--lisp/image/image-crop.el5
-rw-r--r--test/src/image-tests.el4
2 files changed, 9 insertions, 0 deletions
diff --git a/lisp/image/image-crop.el b/lisp/image/image-crop.el
index 39c57576362..d17c2ae389b 100644
--- a/lisp/image/image-crop.el
+++ b/lisp/image/image-crop.el
@@ -31,6 +31,11 @@
(require 'text-property-search)
(eval-when-compile (require 'subr-x))
+(defvar image-scaling-factor)
+(declare-function image-property "image.el" (image property))
+(declare-function image-size "image.c" (spec &optional pixels frame))
+(declare-function imagep "image.c" (spec))
+
(defgroup image-crop ()
"Image cropping."
:group 'image)
diff --git a/test/src/image-tests.el b/test/src/image-tests.el
index bf79faca52e..d1a4dad37b9 100644
--- a/test/src/image-tests.el
+++ b/test/src/image-tests.el
@@ -23,6 +23,10 @@
(require 'ert)
+(declare-function image-size "image.c" (spec &optional pixels frame))
+(declare-function image-mask-p "image.c" (spec &optional frame))
+(declare-function image-metadata "image.c" (spec &optional frame))
+
(defconst image-tests--images
`((gif . ,(expand-file-name "test/data/image/black.gif"
source-directory))