emacs-diffs
[Top][All Lists]
Advanced

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

master 8557ecca53 3/3: ; Fix warnings in --without-x build


From: Stefan Kangas
Subject: master 8557ecca53 3/3: ; Fix warnings in --without-x build
Date: Fri, 23 Sep 2022 09:31:42 -0400 (EDT)

branch: master
commit 8557ecca5363e9b99371d2a3459da654d4d32fc1
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>

    ; 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.
---
 lisp/image/image-crop.el | 5 +++++
 test/src/image-tests.el  | 4 ++++
 2 files changed, 9 insertions(+)

diff --git a/lisp/image/image-crop.el b/lisp/image/image-crop.el
index 39c5757636..d17c2ae389 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 bf79faca52..d1a4dad37b 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))



reply via email to

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