From b2949d39261e82c33572ba8a250298ef0b165b95 Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Fri, 13 Dec 2019 18:52:49 +0100 Subject: [PATCH] xfaces.c: Silence spurious maybe-uninitialized compiler warning * src/xfaces.c (face_inherited_attr): Initialize 'ok' to false. --- src/xfaces.c | 1 + 1 file changed, 1 insertion(+) 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, if (CONSP (parent_face)) { Lisp_Object tail; + ok = false; for (tail = parent_face; !NILP (tail); tail = XCDR (tail)) { ok = get_lface_attributes (w, f, XCAR (tail), inherited_attrs, -- 2.39.2