]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix some compilation warnings
authorEli Zaretskii <eliz@gnu.org>
Tue, 14 May 2024 17:42:11 +0000 (20:42 +0300)
committerEshel Yaron <me@eshelyaron.com>
Thu, 16 May 2024 08:21:53 +0000 (10:21 +0200)
Reported by Jacob Faibussowitsch <jacob.fai@gmail.com>

* 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
src/xdisp.c

index c3437ddd1d65d52efb11c28df41a21313c986199..ceafca282c414613793322e1c8f4cd87775c61ab 100644 (file)
@@ -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 ()
index 72be3ff14295b857bac02df9bbe9ba437f90ea47..85f62a83f9eba13c95e1be61f673426b7e97cfb7 100644 (file)
@@ -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