aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2011-03-08 22:21:25 -0800
committerPaul Eggert2011-03-08 22:21:25 -0800
commitc2ed9c8b0cf694c20eea63f31b7c276efa6a1008 (patch)
tree6ac89f1e898f5b0b5d04bded3569c2ffc330a192
parent071048a3f588c7ae789983bf411a6ea948758abc (diff)
downloademacs-c2ed9c8b0cf694c20eea63f31b7c276efa6a1008.tar.gz
emacs-c2ed9c8b0cf694c20eea63f31b7c276efa6a1008.zip
* term.c (encode_terminal_code): Mark vars for gcc -Wuninitialized.
-rw-r--r--src/ChangeLog1
-rw-r--r--src/term.c6
2 files changed, 4 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 6d22732b5e0..c6f973af8c7 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -89,6 +89,7 @@
89 89
90 * cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not 90 * cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not
91 deduce are never used uninitialized. 91 deduce are never used uninitialized.
92 * term.c (encode_terminal_code): Likewise.
92 93
93 * term.c (encode_terminal_code): Now static. Remove unused local. 94 * term.c (encode_terminal_code): Now static. Remove unused local.
94 95
diff --git a/src/term.c b/src/term.c
index e9e880a0c7f..e78e2e68814 100644
--- a/src/term.c
+++ b/src/term.c
@@ -533,8 +533,8 @@ encode_terminal_code (struct glyph *src, int src_len, struct coding_system *codi
533 { 533 {
534 if (src->type == COMPOSITE_GLYPH) 534 if (src->type == COMPOSITE_GLYPH)
535 { 535 {
536 struct composition *cmp; 536 struct composition *cmp IF_LINT (= NULL);
537 Lisp_Object gstring; 537 Lisp_Object gstring IF_LINT (= Qnil);
538 int i; 538 int i;
539 539
540 nbytes = buf - encode_terminal_src; 540 nbytes = buf - encode_terminal_src;
@@ -595,7 +595,7 @@ encode_terminal_code (struct glyph *src, int src_len, struct coding_system *codi
595 else if (! CHAR_GLYPH_PADDING_P (*src)) 595 else if (! CHAR_GLYPH_PADDING_P (*src))
596 { 596 {
597 GLYPH g; 597 GLYPH g;
598 int c; 598 int c IF_LINT (= 0);
599 Lisp_Object string; 599 Lisp_Object string;
600 600
601 string = Qnil; 601 string = Qnil;