mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-11 09:20:51 +00:00
* 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.
This commit is contained in:
parent
9fba3563f1
commit
97be3ce36c
@ -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 2009-03-06T07:51:52Z!handa@m17n.org,
|
||||
which fixed Bug#2370. Caught by Sun cc.
|
||||
|
@ -849,12 +849,12 @@ free_realized_fontset (FRAME_PTR f, Lisp_Object fontset)
|
||||
{
|
||||
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 @@ at the vertical center of lines. */);
|
||||
defsubr (&Sfontset_list_all);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user