One more attempt to avoid GCC 7 warnings in dispnew.c
* src/dispnew.c (adjust_glyph_matrix): Use eassume instead of eassert, to avoid compilation warnings about NULL pointer dereferences.
This commit is contained in:
parent
6e38b9253e
commit
541b596bf1
1 changed files with 1 additions and 1 deletions
|
@ -386,7 +386,7 @@ adjust_glyph_matrix (struct window *w, struct glyph_matrix *matrix, int x, int y
|
|||
Do nothing if MATRIX' size, position, vscroll, and marginal areas
|
||||
haven't changed. This optimization is important because preserving
|
||||
the matrix means preventing redisplay. */
|
||||
eassert (w != NULL || matrix->pool != NULL);
|
||||
eassume (w != NULL || matrix->pool != NULL);
|
||||
if (matrix->pool == NULL)
|
||||
{
|
||||
left = margin_glyphs_to_reserve (w, dim.width, w->left_margin_cols);
|
||||
|
|
Loading…
Add table
Reference in a new issue