; Pacify some --without-x byte-compiler warnings.

This commit is contained in:
Basil L. Contovounesios 2022-05-07 20:17:23 +03:00
parent 090d5f4446
commit ca3e3c9471
2 changed files with 8 additions and 0 deletions

View file

@ -99,6 +99,7 @@ for more details on the structure of the associations.")
"B_LINK_VISITED_COLOR" "B_LINK_ACTIVE_COLOR"
"B_STATUS_BAR_COLOR" "B_SUCCESS_COLOR" "B_FAILURE_COLOR"])
(defvar x-colors)
;; Also update `x-colors' to take that into account.
(setq x-colors (append haiku-allowed-ui-colors x-colors))

View file

@ -53,6 +53,8 @@
;;;; image-test-size
(declare-function image-size "image.c" (spec &optional pixels frame))
(ert-deftest image-tests-image-size/gif ()
(image-skip-unless 'gif)
(pcase (image-size (create-image (cdr (assq 'gif image-tests--images))))
@ -126,6 +128,8 @@
;;;; image-mask-p
(declare-function image-mask-p "image.c" (spec &optional frame))
(ert-deftest image-tests-image-mask-p/gif ()
(image-skip-unless 'gif)
(should-not (image-mask-p (create-image
@ -176,6 +180,8 @@
;;;; image-metadata
(declare-function image-metadata "image.c" (spec &optional frame))
;; TODO: These tests could be expanded with files that actually
;; contain metadata.
@ -238,6 +244,7 @@
(ert-deftest image-tests-init-image-library ()
(skip-unless (fboundp 'init-image-library))
(declare-function init-image-library "image.c" (type))
(should (init-image-library 'pbm)) ; built-in
(should-not (init-image-library 'invalid-image-type)))