[gs-commits] rev 11763 - trunk/gs/base

ken at ghostscript.com ken at ghostscript.com
Wed Oct 6 13:48:16 UTC 2010


Author: ken
Date: 2010-10-06 13:48:15 +0000 (Wed, 06 Oct 2010)
New Revision: 11763

Modified:
   trunk/gs/base/gdevpdfp.c
   trunk/gs/base/gdevpdtf.c
Log:
Add some body parentheses to 'if' statements in order to silence some clang warnings.


Modified: trunk/gs/base/gdevpdfp.c
===================================================================
--- trunk/gs/base/gdevpdfp.c	2010-10-06 12:06:46 UTC (rev 11762)
+++ trunk/gs/base/gdevpdfp.c	2010-10-06 13:48:15 UTC (rev 11763)
@@ -212,7 +212,8 @@
 	(param_requested(plist, "DSC") > 0 &&
 	 (code = param_write_null(plist, "DSC")) < 0) ||
 	(code = gs_param_write_items(plist, pdev, NULL, pdf_param_items)) < 0
-	);
+	)
+    {}
     return code;
 }
 
@@ -345,7 +346,8 @@
 	    if (code < 0 ||
 		(pdev->is_ps2write && (code = param_read_string(plist, "OPDFReadProcsetPath", &pdev->OPDFReadProcsetPath)) < 0) ||
 		(!pdev->is_ps2write && (code = param_read_bool(plist, "ForOPDFRead", &pdev->ForOPDFRead)) < 0)
-		);
+		){
+	    }
 	    plist->memory = mem;
 	}
 	if (code < 0)

Modified: trunk/gs/base/gdevpdtf.c
===================================================================
--- trunk/gs/base/gdevpdtf.c	2010-10-06 12:06:46 UTC (rev 11762)
+++ trunk/gs/base/gdevpdtf.c	2010-10-06 13:48:15 UTC (rev 11763)
@@ -640,7 +640,7 @@
 	code = pfont->procs.glyph_name(pfont, glyph, &str);
 	if (code < 0)
 	    return code;
-	l = str.size - sl, j;
+	l = str.size - sl;
 	for (j = 0; j < l; j ++)
 	    if (!memcmp(gx_extendeg_glyph_name_separator, str.data + j, sl))
 		return true;



More information about the gs-commits mailing list