diff options
author | Alex Cherepanov <alex.cherepanov@artifex.com> | 2012-09-04 13:37:28 -0400 |
---|---|---|
committer | Alex Cherepanov <alex.cherepanov@artifex.com> | 2012-09-04 13:37:28 -0400 |
commit | c62f5a9f5ead465c1d0fbf2826ba5a00b48a1fdb (patch) | |
tree | 977db82b776dbd6cdbfef973b41707c621e8408b | |
parent | 40c3e3f2b337d5aad89d49dd9f56bfedf6bcf5e5 (diff) | |
download | ghostpdl-c62f5a9f5ead465c1d0fbf2826ba5a00b48a1fdb.tar.gz |
Fix all GCC warnings in Luratech JPX interface.
-rw-r--r-- | gs/base/sjpx_luratech.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gs/base/sjpx_luratech.c b/gs/base/sjpx_luratech.c index f475e28b0..ab4ce6c64 100644 --- a/gs/base/sjpx_luratech.c +++ b/gs/base/sjpx_luratech.c @@ -404,13 +404,12 @@ s_jpxd_init(stream_state * ss) } /* Set the defaults */ -static int +static void s_jpxd_set_defaults(stream_state * ss) { stream_jpxd_state *const state = (stream_jpxd_state *) ss; state->alpha = false; state->image_is_indexed = false; - return 0; } /* write component mapping into 'clut' and return number of used components @@ -710,10 +709,9 @@ static void s_jpxd_release(stream_state *ss) { stream_jpxd_state *const state = (stream_jpxd_state *) ss; - JP2_Error err; if (state) { - err = JP2_Decompress_End(state->handle); + JP2_Decompress_End(state->handle); if (state->inbuf) free(state->inbuf); if (state->image) free(state->image); if (state->clut) free(state->clut); @@ -728,7 +726,8 @@ const stream_template s_jpxd_template = { 1024, 1024, /* min in and out buffer sizes we can handle should be ~32k,64k for efficiency? */ s_jpxd_release, - s_jpxd_set_defaults + s_jpxd_set_defaults, + 0 }; /*** encode support **/ |