From 54d2fd117853cc57edc5bfc04fa4d1dd1e9aea46 Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Thu, 12 Dec 2019 14:42:36 +0100 Subject: [PATCH] Avoid spurious warning about maybe-uninitialized variable * src/xdisp.c (face_at_pos): Initialize base_face_id to 0 to silence the compiler. --- src/xdisp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xdisp.c b/src/xdisp.c index bfc48e36a99..f3aba4a5980 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -4180,7 +4180,7 @@ face_at_pos (const struct it *it, enum lface_attribute_index attr_filter) } else { - int base_face_id; + int base_face_id = 0; ptrdiff_t bufpos; int i; Lisp_Object from_overlay -- 2.39.2