diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2020-02-24 12:57:28 +0000 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2020-02-26 08:18:49 +0000 |
commit | 0822ac2a5f1f02315a783504fccf615a55cf494f (patch) | |
tree | 27a49987718c1eee14d1addc7fd57b26a3f21388 | |
parent | 82a2d6356858c0a4ab9ff7fa294c0380d04aa9e3 (diff) | |
download | ghostpdl-0822ac2a5f1f02315a783504fccf615a55cf494f.tar.gz |
Squash some unused variable warnings.
-rw-r--r-- | base/claptrap-planar.c | 2 | ||||
-rw-r--r-- | base/gp_unifs.c | 21 | ||||
-rw-r--r-- | base/gxclpath.c | 1 | ||||
-rw-r--r-- | gpdl/tifftop.c | 1 |
4 files changed, 12 insertions, 13 deletions
diff --git a/base/claptrap-planar.c b/base/claptrap-planar.c index 46863654f..9b06b1844 100644 --- a/base/claptrap-planar.c +++ b/base/claptrap-planar.c @@ -43,7 +43,9 @@ inline static void process_at_pixel(ClapTrap * gs_restrict ct, /* Use local vars to avoid pointer aliasing */ int width = ct->width; int height = ct->height; +#ifndef NDEBUG int num_comp_lim = ct->num_comps; +#endif int max_x_offset = ct->max_x_offset; int max_y_offset = ct->max_y_offset; int span = ct->span; diff --git a/base/gp_unifs.c b/base/gp_unifs.c index 5ded2059b..70752634c 100644 --- a/base/gp_unifs.c +++ b/base/gp_unifs.c @@ -195,16 +195,16 @@ int gp_pread_impl(char *buf, size_t count, gs_offset_t offset, FILE *f) int c; int64_t os, curroff = gp_ftell_impl(f); if (curroff < 0) return curroff; - + os = gp_fseek_impl(f, offset, 0); if (os < 0) return os; - + c = fread(buf, 1, count, f); if (c < 0) return c; - + os = gp_fseek_impl(f, curroff, 0); if (os < 0) return os; - + return c; #endif } @@ -219,16 +219,16 @@ int gp_pwrite_impl(const char *buf, size_t count, gs_offset_t offset, FILE *f) int c; int64_t os, curroff = gp_ftell_impl(f); if (curroff < 0) return curroff; - + os = gp_fseek_impl(f, offset, 0); if (os < 0) return os; - + c = fwrite(buf, 1, count, f); if (c < 0) return c; - + os = gp_fseek_impl(f, curroff, 0); if (os < 0) return os; - + return c; #endif } @@ -438,7 +438,6 @@ gp_enumerate_files_next_impl(gs_memory_t * mem, file_enum * pfen, char *ptr, uin char *pattern = pfen->pattern; int pathead = pfen->pathead; int len; - struct stat stbuf; if (pfen->first_time) { pfen->dirp = ((worklen == 0) ? opendir(".") : opendir(work)); @@ -636,11 +635,11 @@ bool gp_fseekable_impl(FILE *f) { struct stat s; int fno; - + fno = fileno(f); if (fno < 0) return(false); - + if (fstat(fno, &s) < 0) return(false); diff --git a/base/gxclpath.c b/base/gxclpath.c index f341b6c15..9a57932e3 100644 --- a/base/gxclpath.c +++ b/base/gxclpath.c @@ -1026,7 +1026,6 @@ clist_fill_stroke_path(gx_device * pdev, const gs_gstate * pgs, RECT_ENUM_INIT(re, ry, rheight); do { int code; - fixed ymin, ymax; RECT_STEP_INIT(re); if ((code = cmd_do_write_unknown(cdev, re.pcls, STROKE_ALL_KNOWN | FILL_KNOWN)) < 0) diff --git a/gpdl/tifftop.c b/gpdl/tifftop.c index d12a44ba4..16939dbb5 100644 --- a/gpdl/tifftop.c +++ b/gpdl/tifftop.c @@ -595,7 +595,6 @@ do_impl_process(pl_interp_implementation_t * impl, stream_cursor_read * pr, int gs_string plane_data[GS_IMAGE_MAX_COMPONENTS]; int invert = 0; int alpha = 0; - char emsg[1024]; tiff->handle = TIFFClientOpen("dummy", "rm", (thandle_t)tiff, |