diff options
| author | Paul Eggert | 2011-04-01 10:41:46 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-04-01 10:41:46 -0700 |
| commit | a5a62657a2875e5f89e4aefd93df4023277426f6 (patch) | |
| tree | f06feea2a7ea6f8b45e81e6e6907c3ee49f6b581 /src | |
| parent | 5c5cdd398e5220a8bd77a5842c8013ac17c7e420 (diff) | |
| download | emacs-a5a62657a2875e5f89e4aefd93df4023277426f6.tar.gz emacs-a5a62657a2875e5f89e4aefd93df4023277426f6.zip | |
* xfaces.c (realize_named_face): Remove vars that are set but not used.
(map_tty_color) [!defined MSDOS]: Likewise.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/xfaces.c | 22 |
2 files changed, 11 insertions, 14 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 30a45692ea6..9c1b17f8996 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2011-04-01 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-04-01 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * xfaces.c (realize_named_face): Remove vars that are set but not used. | ||
| 4 | (map_tty_color) [!defined MSDOS]: Likewise. | ||
| 5 | |||
| 3 | * term.c (tty_write_glyphs): Use size_t; this avoids overflow warning. | 6 | * term.c (tty_write_glyphs): Use size_t; this avoids overflow warning. |
| 4 | 7 | ||
| 5 | * coding.c: Remove vars that are set but not used. | 8 | * coding.c: Remove vars that are set but not used. |
diff --git a/src/xfaces.c b/src/xfaces.c index 0fc5dd6f8a3..8a64855bd8f 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -5444,7 +5444,6 @@ realize_named_face (struct frame *f, Lisp_Object symbol, int id) | |||
| 5444 | Lisp_Object lface = lface_from_face_name (f, symbol, 0); | 5444 | Lisp_Object lface = lface_from_face_name (f, symbol, 0); |
| 5445 | Lisp_Object attrs[LFACE_VECTOR_SIZE]; | 5445 | Lisp_Object attrs[LFACE_VECTOR_SIZE]; |
| 5446 | Lisp_Object symbol_attrs[LFACE_VECTOR_SIZE]; | 5446 | Lisp_Object symbol_attrs[LFACE_VECTOR_SIZE]; |
| 5447 | struct face *new_face; | ||
| 5448 | 5447 | ||
| 5449 | /* The default face must exist and be fully specified. */ | 5448 | /* The default face must exist and be fully specified. */ |
| 5450 | get_lface_attributes_no_remap (f, Qdefault, attrs, 1); | 5449 | get_lface_attributes_no_remap (f, Qdefault, attrs, 1); |
| @@ -5464,7 +5463,7 @@ realize_named_face (struct frame *f, Lisp_Object symbol, int id) | |||
| 5464 | merge_face_vectors (f, symbol_attrs, attrs, 0); | 5463 | merge_face_vectors (f, symbol_attrs, attrs, 0); |
| 5465 | 5464 | ||
| 5466 | /* Realize the face. */ | 5465 | /* Realize the face. */ |
| 5467 | new_face = realize_face (c, attrs, id); | 5466 | realize_face (c, attrs, id); |
| 5468 | } | 5467 | } |
| 5469 | 5468 | ||
| 5470 | 5469 | ||
| @@ -5761,21 +5760,16 @@ map_tty_color (struct frame *f, struct face *face, enum lface_attribute_index id | |||
| 5761 | { | 5760 | { |
| 5762 | Lisp_Object frame, color, def; | 5761 | Lisp_Object frame, color, def; |
| 5763 | int foreground_p = idx == LFACE_FOREGROUND_INDEX; | 5762 | int foreground_p = idx == LFACE_FOREGROUND_INDEX; |
| 5764 | unsigned long default_pixel, default_other_pixel, pixel; | 5763 | unsigned long default_pixel = |
| 5764 | foreground_p ? FACE_TTY_DEFAULT_FG_COLOR : FACE_TTY_DEFAULT_BG_COLOR; | ||
| 5765 | unsigned long pixel = default_pixel; | ||
| 5766 | #ifdef MSDOS | ||
| 5767 | unsigned long default_other_pixel = | ||
| 5768 | foreground_p ? FACE_TTY_DEFAULT_BG_COLOR : FACE_TTY_DEFAULT_FG_COLOR; | ||
| 5769 | #endif | ||
| 5765 | 5770 | ||
| 5766 | xassert (idx == LFACE_FOREGROUND_INDEX || idx == LFACE_BACKGROUND_INDEX); | 5771 | xassert (idx == LFACE_FOREGROUND_INDEX || idx == LFACE_BACKGROUND_INDEX); |
| 5767 | 5772 | ||
| 5768 | if (foreground_p) | ||
| 5769 | { | ||
| 5770 | pixel = default_pixel = FACE_TTY_DEFAULT_FG_COLOR; | ||
| 5771 | default_other_pixel = FACE_TTY_DEFAULT_BG_COLOR; | ||
| 5772 | } | ||
| 5773 | else | ||
| 5774 | { | ||
| 5775 | pixel = default_pixel = FACE_TTY_DEFAULT_BG_COLOR; | ||
| 5776 | default_other_pixel = FACE_TTY_DEFAULT_FG_COLOR; | ||
| 5777 | } | ||
| 5778 | |||
| 5779 | XSETFRAME (frame, f); | 5773 | XSETFRAME (frame, f); |
| 5780 | color = face->lface[idx]; | 5774 | color = face->lface[idx]; |
| 5781 | 5775 | ||