emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compiler warning in xdisp.c


From: Po Lu
Subject: Compiler warning in xdisp.c
Date: Tue, 23 Nov 2021 17:50:47 +0800

Compiling master, I get:

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;
      |                ^~~~

I'm not comfortable enough with that code to fix it.  The problem may
also exist in Emacs 28.  Thanks.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]