# HG changeset patch # User Eli Zaretskii # Date 1290544042 -7200 # Node ID 565fc8de76e1e54c5180353072c78b7e71508aa4 # Parent 3aa829f74a4848950ec35a99f5fe05d6fcd50b76 Avoid GCC warning with inline functions. intervals.c (temp_set_point_both): Define before calling, to avoid GCC warnings. diff -r 3aa829f74a48 -r 565fc8de76e1 src/ChangeLog --- 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 + + * intervals.c (temp_set_point_both): Define before calling, to + avoid GCC warnings. + 2010-11-23 Dan Nicolaescu * nsmenu.m: Use #include instead of "config.h". diff -r 3aa829f74a48 -r 565fc8de76e1 src/intervals.c --- 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. */