[gs-cvs] rev 7015 - trunk/gs/src
leonardo at ghostscript.com
leonardo at ghostscript.com
Thu Aug 31 02:53:52 PDT 2006
Author: leonardo
Date: 2006-08-31 02:53:51 -0700 (Thu, 31 Aug 2006)
New Revision: 7015
Modified:
trunk/gs/src/files.h
trunk/gs/src/gdevjpeg.c
trunk/gs/src/gswts.c
trunk/gs/src/gxhintn.c
trunk/gs/src/gxi16bit.c
trunk/gs/src/interp.c
trunk/gs/src/stream.h
trunk/gs/src/zstack.c
trunk/gs/src/zupath.c
Log:
Fix : Cygwin/gcc warnings.
DETAILS :
This includes fixes for potentionally harmful warnings :
Uninitialized variable : interp.c, zupath.c .
Missing function prototype : zfile.h, stream.h (for sfxstdio.c),
EXPECTED DIFFERENCES :
None.
Modified: trunk/gs/src/files.h
===================================================================
--- trunk/gs/src/files.h 2006-08-30 19:04:15 UTC (rev 7014)
+++ trunk/gs/src/files.h 2006-08-31 09:53:51 UTC (rev 7015)
@@ -131,8 +131,6 @@
void make_stream_file(ref *, stream *, const char *);
/* for ziodev.c */
-int file_close_finish(stream *);
-int file_close_disable(stream *);
int file_close_file(stream *);
/* for gsmain.c, interp.c */
Modified: trunk/gs/src/gdevjpeg.c
===================================================================
--- trunk/gs/src/gdevjpeg.c 2006-08-30 19:04:15 UTC (rev 7014)
+++ trunk/gs/src/gdevjpeg.c 2006-08-31 09:53:51 UTC (rev 7015)
@@ -238,7 +238,6 @@
int jq = jdev->JPEGQ;
float qf = jdev->QFactor;
float fparam;
- int t;
switch (code = param_read_int(plist, (param_name = "JPEGQ"), &jq)) {
case 0:
Modified: trunk/gs/src/gswts.c
===================================================================
--- trunk/gs/src/gswts.c 2006-08-30 19:04:15 UTC (rev 7014)
+++ trunk/gs/src/gswts.c 2006-08-31 09:53:51 UTC (rev 7015)
@@ -115,9 +115,6 @@
int l;
} wts_vec_t;
-private int
-gs_wts_to_buf(const wts_screen_t *ws, byte **pbuf);
-
private void
wts_vec_set(wts_vec_t *wv, int u, int v, int k, int l)
{
Modified: trunk/gs/src/gxhintn.c
===================================================================
--- trunk/gs/src/gxhintn.c 2006-08-30 19:04:15 UTC (rev 7014)
+++ trunk/gs/src/gxhintn.c 2006-08-31 09:53:51 UTC (rev 7015)
@@ -798,7 +798,7 @@
sizeof(this->stem_snap_vote0) / count_of(this->stem_snap_vote0),
max(T1_MAX_STEM_SNAPS, count), s_stem_snap_vote_array))
return_error(gs_error_VMerror);
- if (count == 1 || count > 0 && float2fixed(value[count - 1] - value[0]) > pixel_g) {
+ if (count == 1 || (count > 0 && float2fixed(value[count - 1] - value[0]) > pixel_g)) {
for (i = 0; i < count; i++)
this->stem_snap[hv][i] = float2fixed(value[i]);
this->stem_snap_count[hv] = count;
Modified: trunk/gs/src/gxi16bit.c
===================================================================
--- trunk/gs/src/gxi16bit.c 2006-08-30 19:04:15 UTC (rev 7014)
+++ trunk/gs/src/gxi16bit.c 2006-08-31 09:53:51 UTC (rev 7015)
@@ -97,6 +97,8 @@
return true;
}
+#if 0 /* unused due to unknown reason */
+
/* Render an image with more than 8 bits per sample. */
/* The samples have been expanded into fracs. */
private int
@@ -323,3 +325,5 @@
penum->used.y = 0;
return code;
}
+
+#endif /* unused due to unknown reason */
Modified: trunk/gs/src/interp.c
===================================================================
--- trunk/gs/src/interp.c 2006-08-30 19:04:15 UTC (rev 7014)
+++ trunk/gs/src/interp.c 2006-08-31 09:53:51 UTC (rev 7015)
@@ -766,7 +766,7 @@
int code;
ref token; /* token read from file or string, */
/* must be declared in this scope */
- register const ref *pvalue;
+ register const ref *pvalue = 0;
uint opindex; /* needed for oparrays */
os_ptr whichp;
Modified: trunk/gs/src/stream.h
===================================================================
--- trunk/gs/src/stream.h 2006-08-30 19:04:15 UTC (rev 7014)
+++ trunk/gs/src/stream.h 2006-08-31 09:53:51 UTC (rev 7015)
@@ -437,4 +437,8 @@
extern const stream_template s_NullE_template;
extern const stream_template s_NullD_template;
+ /* for ziodev.c */
+int file_close_finish(stream *);
+int file_close_disable(stream *);
+
#endif /* stream_INCLUDED */
Modified: trunk/gs/src/zstack.c
===================================================================
--- trunk/gs/src/zstack.c 2006-08-30 19:04:15 UTC (rev 7014)
+++ trunk/gs/src/zstack.c 2006-08-31 09:53:51 UTC (rev 7015)
@@ -83,7 +83,7 @@
}
/* <obj_n> ... <obj_0> <n> .argindex <obj_n> ... <obj_0> <obj_n> */
-int
+private int
zargindex(i_ctx_t *i_ctx_p)
{
int code = zindex(i_ctx_p);
Modified: trunk/gs/src/zupath.c
===================================================================
--- trunk/gs/src/zupath.c 2006-08-30 19:04:15 UTC (rev 7014)
+++ trunk/gs/src/zupath.c 2006-08-31 09:53:51 UTC (rev 7015)
@@ -164,6 +164,7 @@
} else if (code == e_stackunderflow) {
/* If 0 elements, definitely a stackunderflow; otherwise, */
/* only 1 number, also a stackunderflow. */
+ npop = code;
} else { /* Aperture is a user path. */
/* We have to set the clipping path without disturbing */
/* the current path. */
More information about the gs-cvs
mailing list