[gs-cvs] gs/src

Igor Melichev igor at casper.ghostscript.com
Fri Jul 19 07:51:29 PDT 2002


Update of /cvs/ghostscript/gs/src
In directory casper:/tmp/cvs-serv20729/gs/src

Modified Files:
	gdevpdfe.c gdevpdfs.c gdevpdtc.c gdevpsft.c 
Log Message:
Fix: (pdfwrite) Quiet Cygwin/gcc warnings.


Index: gdevpdfe.c
===================================================================
RCS file: /cvs/ghostscript/gs/src/gdevpdfe.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- gdevpdfe.c	19 Jul 2002 13:35:59 -0000	1.18
+++ gdevpdfe.c	19 Jul 2002 14:51:27 -0000	1.19
@@ -62,7 +62,7 @@
 pdf_do_subset_font(gx_device_pdf *pdev, pdf_font_descriptor_t *pfd)
 {
     gs_font *font = pfd->base_font;
-    bool do_subset;
+    bool do_subset = false;
 
     /*
      * Adobe's Distiller Parameters documentation for Acrobat Distiller 5

Index: gdevpdfs.c
===================================================================
RCS file: /cvs/ghostscript/gs/src/gdevpdfs.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- gdevpdfs.c	16 Jun 2002 05:48:55 -0000	1.22
+++ gdevpdfs.c	19 Jul 2002 14:51:27 -0000	1.23
@@ -302,7 +302,7 @@
 {
     byte *const buf = vbuf;
     pdf_text_enum_t *const penum = (pdf_text_enum_t *)pte;
-    int index = 0, code;
+    int index = 0, code = 0;
     gs_string str;
     pdf_text_process_state_t text_state;
     pdf_text_enum_t curr, prev;
@@ -324,7 +324,7 @@
     /* Scan runs of characters in the same leaf font. */
     for ( ; ; ) {
 	int font_code, buf_index;
-	gs_font *new_font;
+	gs_font *new_font = 0;
 
 	for (buf_index = 0; ; ++buf_index) {
 	    gs_char chr;

Index: gdevpdtc.c
===================================================================
RCS file: /cvs/ghostscript/gs/src/gdevpdtc.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- gdevpdtc.c	9 Jul 2002 14:29:35 -0000	1.6
+++ gdevpdtc.c	19 Jul 2002 14:51:27 -0000	1.7
@@ -41,7 +41,7 @@
 {
     byte *const buf = vbuf;
     pdf_text_enum_t *const penum = (pdf_text_enum_t *)pte;
-    int index = 0, code = 0;
+    int code = 0;
     gs_string str;
     pdf_text_process_state_t text_state;
     pdf_text_enum_t curr, prev;
@@ -63,7 +63,7 @@
     /* Scan runs of characters in the same leaf font. */
     for ( ; ; ) {
 	int font_code, buf_index;
-	gs_font *new_font;
+	gs_font *new_font = 0;
 
 	for (buf_index = 0; ; ++buf_index) {
 	    gs_char chr;

Index: gdevpsft.c
===================================================================
RCS file: /cvs/ghostscript/gs/src/gdevpsft.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- gdevpsft.c	6 Jul 2002 02:54:32 -0000	1.20
+++ gdevpsft.c	19 Jul 2002 14:51:27 -0000	1.21
@@ -651,12 +651,12 @@
     ulong max_glyph;
     uint glyf_length, glyf_checksum = 0 /****** NO CHECKSUM ******/;
     uint loca_length, loca_checksum[2];
-    uint numGlyphs;		/* original value from maxp */
+    uint numGlyphs = 0;		/* original value from maxp */
     byte head[56];		/* 0 mod 4 */
     gs_type42_mtx_t mtx[2];
     post_t post;
     ulong head_checksum, file_checksum = 0;
-    int indexToLocFormat;
+    int indexToLocFormat = 0;
     bool
 	writing_cid = (options & WRITE_TRUETYPE_CID) != 0,
 	writing_stripped = (options & WRITE_TRUETYPE_STRIPPED) != 0,
@@ -667,8 +667,8 @@
 	have_OS_2 = no_generate,
 	have_post = no_generate;
     int have_hvhea[2];
-    uint cmap_length;
-    ulong OS_2_start;
+    uint cmap_length = 0;
+    ulong OS_2_start = 0;
     uint OS_2_length = OS_2_LENGTH;
     int code;
 




More information about the gs-cvs mailing list