Commit 5ad03b97 authored by Paul Eggert's avatar Paul Eggert
Browse files

* font.c (font_sort_entities): Mark var as initialized.

parent 3ddb0639
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
   
* font.c (font_unparse_fcname): Abort in an "impossible" situation * font.c (font_unparse_fcname): Abort in an "impossible" situation
instead of using an uninitialized var. instead of using an uninitialized var.
(font_sort_entities): Mark var as initialized.
   
* character.h (FETCH_CHAR_ADVANCE): Rename locals to avoid shadowing. * character.h (FETCH_CHAR_ADVANCE): Rename locals to avoid shadowing.
   
...@@ -2177,7 +2177,7 @@ font_sort_entities (Lisp_Object list, Lisp_Object prefer, Lisp_Object frame, int ...@@ -2177,7 +2177,7 @@ font_sort_entities (Lisp_Object list, Lisp_Object prefer, Lisp_Object frame, int
unsigned best_score; unsigned best_score;
Lisp_Object best_entity; Lisp_Object best_entity;
struct frame *f = XFRAME (frame); struct frame *f = XFRAME (frame);
Lisp_Object tail, vec; Lisp_Object tail, vec IF_LINT (= Qnil);
USE_SAFE_ALLOCA; USE_SAFE_ALLOCA;
for (i = FONT_WEIGHT_INDEX; i <= FONT_AVGWIDTH_INDEX; i++) for (i = FONT_WEIGHT_INDEX; i <= FONT_AVGWIDTH_INDEX; i++)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment