Commit 61ccba97 authored by Paul Eggert's avatar Paul Eggert

Fix minor problems found by static checking.

* dispextern.h, xdisp.c (row_hash): Declare extern only if XASSERTS.
* dispnew.c (verify_row_hash): Now static.
parent 2071918e
2011-11-18 Paul Eggert <eggert@cs.ucla.edu>
Fix minor problems found by static checking.
* dispextern.h, xdisp.c (row_hash): Declare extern only if XASSERTS.
* dispnew.c (verify_row_hash): Now static.
2011-11-18 Dmitry Antipov <dmantipov@yandex.ru>
* keymap.c (Fwhere_is_internal): Add missing RETURN_UNGCPROs.
......
......@@ -3127,7 +3127,9 @@ void w32_init_fringe (struct redisplay_interface *);
void w32_reset_fringes (void);
#endif
#if XASSERTS
extern unsigned row_hash (struct glyph_row *);
#endif
/* Defined in image.c */
......
......@@ -431,7 +431,7 @@ margin_glyphs_to_reserve (struct window *w, int total_glyphs, Lisp_Object margin
#if XASSERTS
/* Return non-zero if ROW's hash value is correct, zero if not. */
int
static int
verify_row_hash (struct glyph_row *row)
{
return row->hash == row_hash (row);
......
......@@ -17950,6 +17950,9 @@ insert_left_trunc_glyphs (struct it *it)
}
/* Compute the hash code for ROW. */
#if !XASSERTS
static
#endif
unsigned
row_hash (struct glyph_row *row)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment