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

ken at ghostscript.com ken at ghostscript.com
Mon Aug 2 09:06:48 UTC 2010


Author: ken
Date: 2010-08-02 09:06:47 +0000 (Mon, 02 Aug 2010)
New Revision: 11586

Modified:
   trunk/gs/base/gdevpdf.c
   trunk/gs/base/gdevpdfx.h
Log:
Fix a few minor compiler warnings from gcc. No differences expected.


Modified: trunk/gs/base/gdevpdf.c
===================================================================
--- trunk/gs/base/gdevpdf.c	2010-08-02 06:39:25 UTC (rev 11585)
+++ trunk/gs/base/gdevpdf.c	2010-08-02 09:06:47 UTC (rev 11586)
@@ -1060,7 +1060,7 @@
 	    gx_finish_output_page(dev, num_copies, flush));
 }
 
-int find_end_xref_section (gx_device_pdf *pdev, FILE *tfile, int start, int resource_pos)
+static int find_end_xref_section (gx_device_pdf *pdev, FILE *tfile, int start, int resource_pos)
 {
     int start_offset = (start - pdev->FirstObjectNumber) * sizeof(ulong);
 
@@ -1084,7 +1084,7 @@
     return pdev->next_id;
 }
 
-write_xref_section(gx_device_pdf *pdev, FILE *tfile, int start, int end, int resource_pos)
+static int write_xref_section(gx_device_pdf *pdev, FILE *tfile, int start, int end, int resource_pos)
 {
     int start_offset = (start - pdev->FirstObjectNumber) * sizeof(ulong);
 
@@ -1104,6 +1104,7 @@
 	    stream_puts(pdev->strm, str);
 	}
     }
+    return 0;
 }
 
 /* Close the device. */

Modified: trunk/gs/base/gdevpdfx.h
===================================================================
--- trunk/gs/base/gdevpdfx.h	2010-08-02 06:39:25 UTC (rev 11585)
+++ trunk/gs/base/gdevpdfx.h	2010-08-02 09:06:47 UTC (rev 11586)
@@ -766,6 +766,9 @@
 
 /* ------ Objects ------ */
 
+/* Allocate an ID for a future object, set its pos=0 so we can tell if it is used */
+long pdf_obj_forward_ref(gx_device_pdf * pdev)
+
 /* Allocate an ID for a future object. */
 long pdf_obj_ref(gx_device_pdf * pdev);
 



More information about the gs-commits mailing list