changeset 111692:565fc8de76e1

Avoid GCC warning with inline functions. intervals.c (temp_set_point_both): Define before calling, to avoid GCC warnings.
author Eli Zaretskii <eliz@gnu.org>
date Tue, 23 Nov 2010 22:27:22 +0200
parents 3aa829f74a48
children 1cb16ad0d1bc
files src/ChangeLog src/intervals.c
diffstat 2 files changed, 14 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Tue Nov 23 22:21:16 2010 +0200
+++ b/src/ChangeLog	Tue Nov 23 22:27:22 2010 +0200
@@ -1,3 +1,8 @@
+2010-11-23  Eli Zaretskii  <eliz@gnu.org>
+
+	* intervals.c (temp_set_point_both): Define before calling, to
+	avoid GCC warnings.
+
 2010-11-23  Dan Nicolaescu  <dann@ics.uci.edu>
 
 	* nsmenu.m: Use #include <config.h> instead of "config.h".
--- a/src/intervals.c	Tue Nov 23 22:21:16 2010 +0200
+++ b/src/intervals.c	Tue Nov 23 22:27:22 2010 +0200
@@ -1875,15 +1875,6 @@
 }
 
 
-/* Set point "temporarily", without checking any text properties.  */
-
-INLINE void
-temp_set_point (struct buffer *buffer, EMACS_INT charpos)
-{
-  temp_set_point_both (buffer, charpos,
-		       buf_charpos_to_bytepos (buffer, charpos));
-}
-
 /* Set point in BUFFER "temporarily" to CHARPOS, which corresponds to
    byte position BYTEPOS.  */
 
@@ -1906,6 +1897,15 @@
   BUF_PT (buffer) = charpos;
 }
 
+/* Set point "temporarily", without checking any text properties.  */
+
+INLINE void
+temp_set_point (struct buffer *buffer, EMACS_INT charpos)
+{
+  temp_set_point_both (buffer, charpos,
+		       buf_charpos_to_bytepos (buffer, charpos));
+}
+
 /* Set point in BUFFER to CHARPOS.  If the target position is
    before an intangible character, move to an ok place.  */