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.
This commit is contained in:
Paul Eggert 2011-11-18 10:29:29 -08:00
parent 2071918ec9
commit 61ccba97a1
4 changed files with 12 additions and 1 deletions

View file

@ -1,3 +1,9 @@
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.

View file

@ -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 */

View file

@ -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);

View file

@ -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)
{