From 362d5abd44e85dce5fba9e9a26d92bb66087ac9c Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 14 May 2024 20:42:11 +0300 Subject: [PATCH] Fix some compilation warnings Reported by Jacob Faibussowitsch * lisp/net/eww.el (imagep): Declare. * src/xdisp.c (note_fringe_highlight): Now compiled only if HAVE_WINDOW_SYSTEM. (cherry picked from commit 4a973ce7e2b647a6adb0a6eaab74426a332f5721) --- lisp/net/eww.el | 1 + src/xdisp.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/lisp/net/eww.el b/lisp/net/eww.el index c3437ddd1d6..ceafca282c4 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -1353,6 +1353,7 @@ within text input fields." (setq text-property-default-nonsticky '((face . t) (eww-form . t) (field . t)))) +(declare-function imagep "image.c") (defvar text-scale-mode) (defvar text-scale-mode-amount) (defun eww--rescale-images () diff --git a/src/xdisp.c b/src/xdisp.c index 72be3ff1429..85f62a83f9e 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -35748,6 +35748,7 @@ note_mode_line_or_margin_highlight (Lisp_Object window, int x, int y, define_frame_cursor1 (f, cursor, pointer); } +#ifdef HAVE_WINDOW_SYSTEM /* Take proper action when mouse has moved to the window WINDOW, with window-local x-position X and y-position Y. This is only used for @@ -35826,6 +35827,8 @@ note_fringe_highlight (struct frame *f, Lisp_Object window, int x, int y, } } +#endif /* HAVE_WINDOW_SYSTEM */ + /* EXPORT: Take proper action when the mouse has moved to position X, Y on frame F with regards to highlighting portions of display that have -- 2.39.5