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:
parent
479623784e
commit
ca9f2fc2a4
1 changed files with 1 additions and 0 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue