From 1a3dbe6fba2e05092d64615a1a2625b5a37456ec Mon Sep 17 00:00:00 2001 From: DRC Date: Mon, 28 Feb 2011 10:51:55 +0000 Subject: [PATCH] Unused variables git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@473 632fc199-4ca6-4c93-a231-07263d6284db --- turbojpeg-jni.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/turbojpeg-jni.c b/turbojpeg-jni.c index dbf0449..db1118c 100644 --- a/turbojpeg-jni.c +++ b/turbojpeg-jni.c @@ -81,7 +81,7 @@ JNIEXPORT void JNICALL Java_org_libjpegturbo_turbojpeg_TJCompressor_init jfieldID fid; tjhandle handle; - if((handle=tjInitCompress())==NULL) + if((handle=tjInitCompress())==NULL) _throw(tjGetErrorStr()); bailif0(cls=(*env)->GetObjectClass(env, obj)); @@ -164,7 +164,6 @@ JNIEXPORT void JNICALL Java_org_libjpegturbo_turbojpeg_TJCompressor_encodeYUV___ jint height, jint pf, jbyteArray dst, jint jpegsubsamp, jint flags) { tjhandle handle=0; int pixelsize; - unsigned long size=0; unsigned char *srcbuf=NULL, *dstbuf=NULL; gethandle(); @@ -196,7 +195,6 @@ JNIEXPORT void JNICALL Java_org_libjpegturbo_turbojpeg_TJCompressor_encodeYUV___ jint height, jint pf, jbyteArray dst, jint jpegsubsamp, jint flags) { tjhandle handle=0; - unsigned long size=0; unsigned char *srcbuf=NULL, *dstbuf=NULL; gethandle(); @@ -245,7 +243,7 @@ JNIEXPORT void JNICALL Java_org_libjpegturbo_turbojpeg_TJDecompressor_init jfieldID fid; tjhandle handle; - if((handle=tjInitDecompress())==NULL) _throw(tjGetErrorStr()); + if((handle=tjInitDecompress())==NULL) _throw(tjGetErrorStr()); bailif0(cls=(*env)->GetObjectClass(env, obj)); bailif0(fid=(*env)->GetFieldID(env, cls, "handle", "J")); @@ -344,7 +342,7 @@ JNIEXPORT void JNICALL Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress (JNIEnv *env, jobject obj, jbyteArray src, jint size, jintArray dst, jint width, jint pitch, jint height, jint pf, jint flags) { - tjhandle handle=0; int ps; + tjhandle handle=0; unsigned char *srcbuf=NULL, *dstbuf=NULL; gethandle(); @@ -359,7 +357,7 @@ JNIEXPORT void JNICALL Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress bailif0(dstbuf=(*env)->GetPrimitiveArrayCritical(env, dst, 0)); if(tjDecompress(handle, srcbuf, (unsigned long)size, dstbuf, width, - pitch*sizeof(jint), height, sizeof(jint), flags)==-1) + pitch*sizeof(jint), height, sizeof(jint), flags)==-1) { (*env)->ReleasePrimitiveArrayCritical(env, dst, dstbuf, 0); (*env)->ReleasePrimitiveArrayCritical(env, src, srcbuf, 0); -- 2.40.0