Pacify gcc -Wanalyzer-null-dereference

* src/xdisp.c (normal_char_ascent_descent): Pacify GCC 11.2.1
20220127 (Red Hat 11.2.1-9) x86-64 -Wanalyzer-null-dereference.
This commit is contained in:
Paul Eggert 2022-02-23 12:30:33 -08:00
parent 479623784e
commit ca9f2fc2a4

View file

@ -29037,6 +29037,7 @@ normal_char_ascent_descent (struct font *font, int c, int *ascent, int *descent)
if (get_char_glyph_code (c >= 0 ? c : '{', font, &char2b))
{
struct font_metrics *pcm = get_per_char_metric (font, &char2b);
eassume (pcm);
if (!(pcm->width == 0 && pcm->rbearing == 0 && pcm->lbearing == 0))
{