Mercurial > emacs
changeset 112296:a3ee86732163
* fontset.c (free_realized_fontset): Mark unreachable code with if (0).
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Sun, 16 Jan 2011 19:06:11 -0800 |
parents | 7b9be5e0ebf3 (current diff) 9164d0b32512 (diff) |
children | 428d3d3b9f96 |
files | |
diffstat | 2 files changed, 10 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Sun Jan 16 18:56:50 2011 -0800 +++ b/src/ChangeLog Sun Jan 16 19:06:11 2011 -0800 @@ -1,5 +1,9 @@ 2011-01-17 Paul Eggert <eggert@cs.ucla.edu> + * fontset.c (free_realized_fontset): Mark unreachable code with if (0). + Previously it was marked by preceding it with "return;", but + Sun cc complains about this. + * coding.c (decode_coding_emacs_mule): Remove unreachable code. This is a typo left over from revno 95090 dated 2009-03-06, which fixed Bug#2370. Caught by Sun cc.
--- a/src/fontset.c Sun Jan 16 18:56:50 2011 -0800 +++ b/src/fontset.c Sun Jan 16 19:06:11 2011 -0800 @@ -849,12 +849,12 @@ { Lisp_Object tail; - return; - for (tail = FONTSET_OBJLIST (fontset); CONSP (tail); tail = XCDR (tail)) - { - xassert (FONT_OBJECT_P (XCAR (tail))); - font_close_object (f, XCAR (tail)); - } + if (0) + for (tail = FONTSET_OBJLIST (fontset); CONSP (tail); tail = XCDR (tail)) + { + xassert (FONT_OBJECT_P (XCAR (tail))); + font_close_object (f, XCAR (tail)); + } } /* Free fontset of FACE defined on frame F. Called from @@ -2263,4 +2263,3 @@ defsubr (&Sfontset_list_all); #endif } -