diff --git a/jccolor.c b/jccolor.c index 5c186d42c..73969901d 100644 --- a/jccolor.c +++ b/jccolor.c @@ -258,14 +258,12 @@ rgb_gray_convert (j_compress_ptr cinfo, JSAMPARRAY input_buf, JSAMPIMAGE output_buf, JDIMENSION output_row, int num_rows) { - my_cconvert_ptr cconvert = (my_cconvert_ptr) cinfo->cconvert; #if BITS_IN_JSAMPLE != 8 register INT32 * ctab = cconvert->rgb_ycc_tab; #endif register JSAMPROW inptr; register JSAMPROW outptr; JSAMPLE *maxoutptr; - register JDIMENSION col; JDIMENSION num_cols = cinfo->image_width; int rindex = rgb_red[cinfo->in_color_space]; int gindex = rgb_green[cinfo->in_color_space]; diff --git a/jdcolor.c b/jdcolor.c index e02ea4f9d..bc73b3f46 100644 --- a/jdcolor.c +++ b/jdcolor.c @@ -223,7 +223,6 @@ gray_rgb_convert (j_decompress_ptr cinfo, { register JSAMPROW inptr, outptr; JSAMPLE *maxinptr; - register JDIMENSION col; JDIMENSION num_cols = cinfo->output_width; int rindex = rgb_red[cinfo->out_color_space]; int gindex = rgb_green[cinfo->out_color_space]; diff --git a/jpgtest.c b/jpgtest.c index ef5eaf917..cac5ce3f2 100644 --- a/jpgtest.c +++ b/jpgtest.c @@ -69,7 +69,8 @@ void dotest(unsigned char *srcbuf, int w, int h, int pf, int bu, FILE *outfile=NULL; tjhandle hnd=NULL; unsigned char **jpegbuf=NULL, *rgbbuf=NULL; double start, elapsed; - int jpgbufsize=0, i, j, tilesizex, tilesizey, numtilesx, numtilesy, ITER; + int jpgbufsize=0, i, j, tilesizex=w, tilesizey=h, numtilesx=1, numtilesy=1, + ITER; unsigned long *comptilesize=NULL; int flags=(forcemmx?TJ_FORCEMMX:0)|(forcesse?TJ_FORCESSE:0) |(forcesse2?TJ_FORCESSE2:0)|(forcesse3?TJ_FORCESSE3:0) diff --git a/turbojpegl.c b/turbojpegl.c index 94af6d734..8e3f2b09a 100644 --- a/turbojpegl.c +++ b/turbojpegl.c @@ -531,7 +531,6 @@ DLLEXPORT int DLLCALL tjDecompress(tjhandle h, ptr=_tmpbuf; for(i=0; inum_components; i++) { - jpeg_component_info *compptr=&dinfo->comp_info[i]; if((tmpbuf[i]=(JSAMPROW *)malloc(sizeof(JSAMPROW)*th[i]))==NULL) _throw("Memory allocation failed in tjDecompress()"); for(row=0; rownum_components; i++) { - jpeg_component_info *compptr=&dinfo->comp_info[i]; for(j=0; j