diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-02-26 23:50:33 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-02-26 23:50:33 -0800 |
commit | c783d15b93c536b1d2d07a0e9ca9462d1f377120 (patch) | |
tree | d41221d38f27f7ba2dafc50b219c5ef76a2e4795 /src/scroll.c | |
parent | 76c1cebcc969aeb29498960158819b25e772141a (diff) | |
download | emacs-c783d15b93c536b1d2d07a0e9ca9462d1f377120.tar.gz emacs-c783d15b93c536b1d2d07a0e9ca9462d1f377120.tar.bz2 emacs-c783d15b93c536b1d2d07a0e9ca9462d1f377120.zip |
* scroll.c (CHECK_BOUNDS): #define only if GLYPH_DEBUG.
This avoids a gcc warning in some configurations.
Diffstat (limited to 'src/scroll.c')
-rw-r--r-- | src/scroll.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/scroll.c b/src/scroll.c index 08ae83eeee8..1343b89c41e 100644 --- a/src/scroll.c +++ b/src/scroll.c @@ -262,7 +262,8 @@ do_scrolling (struct frame *frame, struct glyph_matrix *current_matrix, struct m for (k = 0; k < window_size; ++k) copy_from[k] = -1; -#define CHECK_BOUNDS \ +#if GLYPH_DEBUG +# define CHECK_BOUNDS \ do \ { \ int k; \ @@ -271,6 +272,7 @@ do_scrolling (struct frame *frame, struct glyph_matrix *current_matrix, struct m || (copy_from[k] >= 0 && copy_from[k] < window_size)); \ } \ while (0); +#endif /* When j is advanced, this corresponds to deleted lines. When i is advanced, this corresponds to inserted lines. */ @@ -1035,4 +1037,3 @@ do_line_insertion_deletion_costs (FRAME_PTR frame, FRAME_DELETE_COST (frame), FRAME_DELETEN_COST (frame), coefficient); } - |