[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs-28 d791cd5: Fix '(space :relative-width N)' display spec w/non
From: |
Eli Zaretskii |
Subject: |
Re: emacs-28 d791cd5: Fix '(space :relative-width N)' display spec w/non-ASCII chars |
Date: |
Tue, 23 Nov 2021 14:39:48 +0200 |
> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: Eli Zaretskii <eliz@gnu.org>
> Date: Tue, 23 Nov 2021 09:39:13 +0100
>
> eliz@gnu.org (Eli Zaretskii) writes:
>
> > Fix '(space :relative-width N)' display spec w/non-ASCII chars
>
> This apparently leads to the following compilation warning (on master,
> at least):
>
> In file included from composite.h:29,
> from xdisp.c:441:
> xdisp.c: In function 'produce_stretch_glyph':
> dispextern.h:1891:10: warning: 'face' may be used uninitialized in this
> function [-Wmaybe-uninitialized]
> 1891 | return face_for_char (f, face, character, pos, object);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> xdisp.c:30063:16: note: 'face' was declared here
> 30063 | struct face *face;
> | ^~~~
Stupid compiler, which cannot get its act together wrt conditions,
shouldn't attempt to issue warnings about code it didn't understand.
I hope I fixed this now (assuming we won't see a different bogus
warning).
Thanks.