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

ken at ghostscript.com ken at ghostscript.com
Thu Oct 7 08:35:59 UTC 2010


Author: ken
Date: 2010-10-07 08:35:58 +0000 (Thu, 07 Oct 2010)
New Revision: 11769

Modified:
   trunk/gs/base/gdevpdf.c
Log:
Silence (hopefully) some compiler warnings.


Modified: trunk/gs/base/gdevpdf.c
===================================================================
--- trunk/gs/base/gdevpdf.c	2010-10-07 08:04:15 UTC (rev 11768)
+++ trunk/gs/base/gdevpdf.c	2010-10-07 08:35:58 UTC (rev 11769)
@@ -1073,7 +1073,7 @@
 
 	    r = fread(&pos, sizeof(pos), 1, tfile);
 	    if (r != 1)
-		gs_note_error(gs_error_ioerror);
+		return(gs_note_error(gs_error_ioerror));
 	    if (pos & ASIDES_BASE_POSITION)
 		pos += resource_pos - ASIDES_BASE_POSITION;
 	    pos -= pdev->OPDFRead_procset_length;
@@ -1099,7 +1099,7 @@
 
 	    r = fread(&pos, sizeof(pos), 1, tfile);
 	    if (r != 1)
-		gs_note_error(gs_error_ioerror);
+		return(gs_note_error(gs_error_ioerror));
 	    if (pos & ASIDES_BASE_POSITION)
 	        pos += resource_pos - ASIDES_BASE_POSITION;
 	    pos -= pdev->OPDFRead_procset_length;



More information about the gs-commits mailing list