]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix a number of Android compilation warnings
authorPo Lu <luangruo@yahoo.com>
Sat, 21 Dec 2024 00:53:21 +0000 (08:53 +0800)
committerEshel Yaron <me@eshelyaron.com>
Mon, 23 Dec 2024 15:18:53 +0000 (16:18 +0100)
* src/dispnew.c (frame_rect_abs, frame_pos_abs, rect_intersect)
(copy_child_glyphs, abs_cursor_pos, is_in_matrix)
(is_cursor_obscured) [HAVE_ANDROID]: Delete functions.

(cherry picked from commit 2d173aa3d34e60206f4889eb0220aa2269b3ed4d)

src/dispnew.c

index 0137f66fbca3e55b50f4902c319d44fada36457e..1f6a578f8804e67fd8ccc7e20994d751ca82f577 100644 (file)
@@ -3285,6 +3285,8 @@ struct rect
   int x, y, w, h;
 };
 
+#ifndef HAVE_ANDROID
+
 /* Compute the intersection of R1 and R2 in R.  Value is true if R1 and
    R2 intersect, false otherwise.  */
 
@@ -3327,6 +3329,8 @@ frame_rect_abs (struct frame *f)
   return (struct rect) { x, y, f->total_cols, f->total_lines };
 }
 
+#endif /* !HAVE_ANDROID */
+
 /* Return the root frame of frame F.  Follow the parent_frame chain
    until we reach a frame that has no parent.  That is the root frame.
    Note that the root of a root frame is itself. */
@@ -3509,6 +3513,8 @@ make_matrix_current (struct frame *f)
        make_current (f, NULL, i);
 }
 
+#ifndef HAVE_ANDROID
+
 /* Prepare ROOT's desired row at index Y for copying child frame
    contents to it.  Value is the prepared desired row or NULL if we
    don't have, and can't contruct a desired row.  */
@@ -3742,6 +3748,8 @@ copy_child_glyphs (struct frame *root, struct frame *child)
     }
 }
 
+#endif /* !HAVE_ANDROID */
+
 /***********************************************************************
                             Frame Update
  ***********************************************************************/
@@ -3834,6 +3842,8 @@ update_tty_frame (struct frame *f)
   build_frame_matrix (f);
 }
 
+#ifndef HAVE_ANDROID
+
 /* Return the cursor position of the selected window of frame F, in
    absolute coordinates in *X and *Y.  Note that if F is a child frame,
    its cursor may be clipped, i.e. outside of the bounds of the terminal
@@ -3900,8 +3910,6 @@ is_cursor_obscured (void)
   return cursor_glyph->frame != SELECTED_FRAME ();
 }
 
-#ifndef HAVE_ANDROID
-
 /* Decide where to show the cursor, and whether to hide it.
 
    This works very well for Vertico-Posframe, Transient-Posframe and