diff options
| author | Juanma Barranquero | 2019-12-13 18:52:49 +0100 |
|---|---|---|
| committer | Juanma Barranquero | 2019-12-13 18:52:49 +0100 |
| commit | b2949d39261e82c33572ba8a250298ef0b165b95 (patch) | |
| tree | 29729c9150e73b33a5052d5e2f467f43da140006 /src | |
| parent | 73f37da12dc7808a2be1d38787642f4900632b49 (diff) | |
| download | emacs-b2949d39261e82c33572ba8a250298ef0b165b95.tar.gz emacs-b2949d39261e82c33572ba8a250298ef0b165b95.zip | |
xfaces.c: Silence spurious maybe-uninitialized compiler warning
* src/xfaces.c (face_inherited_attr): Initialize 'ok' to false.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfaces.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xfaces.c b/src/xfaces.c index 5c347d41e30..26fd3631f90 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -2168,6 +2168,7 @@ face_inherited_attr (struct window *w, struct frame *f, | |||
| 2168 | if (CONSP (parent_face)) | 2168 | if (CONSP (parent_face)) |
| 2169 | { | 2169 | { |
| 2170 | Lisp_Object tail; | 2170 | Lisp_Object tail; |
| 2171 | ok = false; | ||
| 2171 | for (tail = parent_face; !NILP (tail); tail = XCDR (tail)) | 2172 | for (tail = parent_face; !NILP (tail); tail = XCDR (tail)) |
| 2172 | { | 2173 | { |
| 2173 | ok = get_lface_attributes (w, f, XCAR (tail), inherited_attrs, | 2174 | ok = get_lface_attributes (w, f, XCAR (tail), inherited_attrs, |