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

robin at ghostscript.com robin at ghostscript.com
Wed Oct 13 17:15:00 UTC 2010


Author: robin
Date: 2010-10-13 17:14:59 +0000 (Wed, 13 Oct 2010)
New Revision: 11799

Modified:
   trunk/gs/base/gdevtifs.c
Log:
Fix 2 build warnings in gdevtifs.c

No expected differences.



Modified: trunk/gs/base/gdevtifs.c
===================================================================
--- trunk/gs/base/gdevtifs.c	2010-10-13 16:52:56 UTC (rev 11798)
+++ trunk/gs/base/gdevtifs.c	2010-10-13 17:14:59 UTC (rev 11799)
@@ -332,7 +332,7 @@
 int
 tiff_print_page(gx_device_printer *dev, TIFF *tif)
 {
-    int code;
+    int code = 0;
     byte *data;
     int size = gdev_mem_bytes_per_scan_line((gx_device *)dev);
     int max_size = max(size, TIFFScanlineSize(tif));
@@ -488,13 +488,12 @@
 int
 tiff_downscale_and_print_page(gx_device_printer *dev, TIFF *tif, int factor)
 {
-    int code;
+    int code = 0;
     byte *data;
     int *errors;
     int size = gdev_mem_bytes_per_scan_line((gx_device *)dev);
     int max_size = max(size, TIFFScanlineSize(tif)) + factor-1;
     int row;
-    int bpc = dev->color_info.depth / dev->color_info.num_components;
     int n;
     int width = (dev->width + factor-1)/factor;
 



More information about the gs-commits mailing list