]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid spurious warning about maybe-uninitialized variable
authorJuanma Barranquero <lekktu@gmail.com>
Thu, 12 Dec 2019 13:42:36 +0000 (14:42 +0100)
committerJuanma Barranquero <lekktu@gmail.com>
Thu, 12 Dec 2019 13:42:53 +0000 (14:42 +0100)
* src/xdisp.c (face_at_pos): Initialize base_face_id to 0
to silence the compiler.

src/xdisp.c

index bfc48e36a995ddb7df15f51ec01022adceddad3c..f3aba4a5980c3551a5a8f0a6eb6f67a18c424284 100644 (file)
@@ -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