From: Juanma Barranquero Date: Fri, 13 Dec 2019 17:52:49 +0000 (+0100) Subject: xfaces.c: Silence spurious maybe-uninitialized compiler warning X-Git-Tag: emacs-27.0.90~357 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b2949d39261e82c33572ba8a250298ef0b165b95;p=emacs.git xfaces.c: Silence spurious maybe-uninitialized compiler warning * src/xfaces.c (face_inherited_attr): Initialize 'ok' to false. --- 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,