changeset 112290:9164d0b32512

* 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.
author Paul Eggert <eggert@cs.ucla.edu>
date Sun, 16 Jan 2011 19:05:08 -0800
parents 81d8294d0c45
children d10e4c917525 a3ee86732163
files src/ChangeLog src/fontset.c
diffstat 2 files changed, 10 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sun Jan 16 18:55:28 2011 -0800
+++ b/src/ChangeLog	Sun Jan 16 19:05:08 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:55:28 2011 -0800
+++ b/src/fontset.c	Sun Jan 16 19:05:08 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
 }
-