Avoid GCC warning with inline functions.
authorEli Zaretskii <eliz@gnu.org>
Tue, 23 Nov 2010 20:27:22 +0000 (22:27 +0200)
committerEli Zaretskii <eliz@gnu.org>
Tue, 23 Nov 2010 20:27:22 +0000 (22:27 +0200)
 intervals.c (temp_set_point_both): Define before calling, to
 avoid GCC warnings.

src/ChangeLog
src/intervals.c

index 9de862d..c18c84a 100644 (file)
@@ -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".
index 5e08e13..def63c4 100644 (file)
@@ -1875,15 +1875,6 @@ lookup_char_property (Lisp_Object plist, register Lisp_Object prop, int textprop
 }
 
 \f
-/* 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 @@ temp_set_point_both (struct buffer *buffer,
   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.  */