diff options
author | Juanma Barranquero <lekktu@gmail.com> | 2019-12-12 14:42:36 +0100 |
---|---|---|
committer | Juanma Barranquero <lekktu@gmail.com> | 2019-12-12 14:42:53 +0100 |
commit | 54d2fd117853cc57edc5bfc04fa4d1dd1e9aea46 (patch) | |
tree | 5507e6f257e7a04b56b973a11491cce8fd497da2 | |
parent | 6ee3675dad6f2404d4177aa1ec8eada7286994f4 (diff) | |
download | emacs-54d2fd117853cc57edc5bfc04fa4d1dd1e9aea46.tar.gz |
Avoid spurious warning about maybe-uninitialized variable
* src/xdisp.c (face_at_pos): Initialize base_face_id to 0
to silence the compiler.
-rw-r--r-- | src/xdisp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |