Clean up compiler warnings

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@546 632fc199-4ca6-4c93-a231-07263d6284db
This commit is contained in:
DRC
2011-03-31 10:06:17 +00:00
parent ba6f457099
commit 4f8c29572e
2 changed files with 2 additions and 3 deletions

View File

@@ -197,7 +197,7 @@ public class TJExample {
}
File file = new File(argv[0]);
int width, height, subsamp = TJ.SAMP_444;
int width, height;
if(inFormat.equalsIgnoreCase("jpg")) {
FileInputStream fis = new FileInputStream(file);
@@ -211,7 +211,6 @@ public class TJExample {
fis.close();
TJDecompressor tjd;
TJ.ScalingFactor sf;
if(xform.op != TJTransform.OP_NONE || xform.options != 0) {
TJTransformer tjt = new TJTransformer(inputBuf);
TJTransform t[] = new TJTransform[1];

View File

@@ -704,7 +704,7 @@ public class TJUnitTest {
String baseFilename) throws Exception {
TJCompressor tjc = null;
TJDecompressor tjd = null;
int size, pfstart, pfend;
int size;
byte[] jpegBuf;
if(yuv == YUVENCODE) jpegBuf = new byte[TJ.bufSizeYUV(w, h, subsamp)];