Commit c2ed9c8b authored by Paul Eggert's avatar Paul Eggert
Browse files

* term.c (encode_terminal_code): Mark vars for gcc -Wuninitialized.

parent 071048a3
...@@ -89,6 +89,7 @@ ...@@ -89,6 +89,7 @@
   
* cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not * cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not
deduce are never used uninitialized. deduce are never used uninitialized.
* term.c (encode_terminal_code): Likewise.
   
* term.c (encode_terminal_code): Now static. Remove unused local. * term.c (encode_terminal_code): Now static. Remove unused local.
   
...@@ -533,8 +533,8 @@ encode_terminal_code (struct glyph *src, int src_len, struct coding_system *codi ...@@ -533,8 +533,8 @@ encode_terminal_code (struct glyph *src, int src_len, struct coding_system *codi
{ {
if (src->type == COMPOSITE_GLYPH) if (src->type == COMPOSITE_GLYPH)
{ {
struct composition *cmp; struct composition *cmp IF_LINT (= NULL);
Lisp_Object gstring; Lisp_Object gstring IF_LINT (= Qnil);
int i; int i;
nbytes = buf - encode_terminal_src; nbytes = buf - encode_terminal_src;
...@@ -595,7 +595,7 @@ encode_terminal_code (struct glyph *src, int src_len, struct coding_system *codi ...@@ -595,7 +595,7 @@ encode_terminal_code (struct glyph *src, int src_len, struct coding_system *codi
else if (! CHAR_GLYPH_PADDING_P (*src)) else if (! CHAR_GLYPH_PADDING_P (*src))
{ {
GLYPH g; GLYPH g;
int c; int c IF_LINT (= 0);
Lisp_Object string; Lisp_Object string;
string = Qnil; string = Qnil;
......
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