diff options
| author | Paul Eggert | 2011-03-08 22:25:19 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-03-08 22:25:19 -0800 |
| commit | 1e9966ea025891f948200db6ab85a7e7e169e502 (patch) | |
| tree | cd96ef862a8cbf67f4a4f5b4eb1ddd04ae31bbcf /src | |
| parent | 5967d05138d7405e4b60153f98c8beaf40c7d6da (diff) | |
| download | emacs-1e9966ea025891f948200db6ab85a7e7e169e502.tar.gz emacs-1e9966ea025891f948200db6ab85a7e7e169e502.zip | |
* xfaces.c (Fx_list_fonts): Mark variable that gcc -Wuninitialized
does not deduce is never used uninitialized.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/xfaces.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index fb266a71a0f..44782386684 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -4,6 +4,8 @@ | |||
| 4 | or move locals to avoid shadowing. | 4 | or move locals to avoid shadowing. |
| 5 | (tty_defined_color, merge_face_heights): Now static. | 5 | (tty_defined_color, merge_face_heights): Now static. |
| 6 | (free_realized_faces_for_fontset): Remove; not used. | 6 | (free_realized_faces_for_fontset): Remove; not used. |
| 7 | (Fx_list_fonts): Mark variable that gcc -Wuninitialized | ||
| 8 | does not deduce is never used uninitialized. | ||
| 7 | 9 | ||
| 8 | * terminal.c (store_terminal_param): Now static. | 10 | * terminal.c (store_terminal_param): Now static. |
| 9 | 11 | ||
diff --git a/src/xfaces.c b/src/xfaces.c index b49675a7d8e..ded871d1fdd 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -1720,7 +1720,7 @@ the WIDTH times as wide as FACE on FRAME. */) | |||
| 1720 | (Lisp_Object pattern, Lisp_Object face, Lisp_Object frame, Lisp_Object maximum, Lisp_Object width) | 1720 | (Lisp_Object pattern, Lisp_Object face, Lisp_Object frame, Lisp_Object maximum, Lisp_Object width) |
| 1721 | { | 1721 | { |
| 1722 | struct frame *f; | 1722 | struct frame *f; |
| 1723 | int size, avgwidth; | 1723 | int size, avgwidth IF_LINT (= 0); |
| 1724 | 1724 | ||
| 1725 | check_x (); | 1725 | check_x (); |
| 1726 | CHECK_STRING (pattern); | 1726 | CHECK_STRING (pattern); |