This avoids a gcc warning in some configurations.
2011-02-27 Paul Eggert <eggert@cs.ucla.edu>
+ * scroll.c (CHECK_BOUNDS): #define only if GLYPH_DEBUG.
+ This avoids a gcc warning in some configurations.
+
* frame.c (x_set_screen_gamma): Rename local to avoid shadowing.
* frame.h: Avoid gcc -Wmissing-prototypes diagnostics.
for (k = 0; k < window_size; ++k)
copy_from[k] = -1;
-#define CHECK_BOUNDS \
+#if GLYPH_DEBUG
+# define CHECK_BOUNDS \
do \
{ \
int k; \
|| (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. */
FRAME_DELETE_COST (frame), FRAME_DELETEN_COST (frame),
coefficient);
}
-