From: Yann Collet Date: Sat, 13 Dec 2014 10:49:55 +0000 (+0100) Subject: Fixed : minor warnings under Visual X-Git-Tag: upstream/1.9.3~249^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8f844fe70068d2a632e7f0e24ecfa05a1d3e1302;p=platform%2Fupstream%2Flz4.git Fixed : minor warnings under Visual --- diff --git a/examples/HCStreaming_ringBuffer.c b/examples/HCStreaming_ringBuffer.c old mode 100644 new mode 100755 index dfa2670..cfae9d7 --- a/examples/HCStreaming_ringBuffer.c +++ b/examples/HCStreaming_ringBuffer.c @@ -58,7 +58,6 @@ void test_compress(FILE* outFp, FILE* inpFp) static char inpBuf[RING_BUFFER_BYTES]; int inpOffset = 0; - unsigned done = 0; for(;;) { @@ -77,7 +76,6 @@ void test_compress(FILE* outFp, FILE* inpFp) write_bin(outFp, cmpBuf, cmpBytes); inpOffset += inpBytes; - done += inpBytes; // Wraparound the ringbuffer offset if(inpOffset >= RING_BUFFER_BYTES - MESSAGE_MAX_BYTES) @@ -95,7 +93,6 @@ void test_decompress(FILE* outFp, FILE* inpFp) int decOffset = 0; LZ4_streamDecode_t lz4StreamDecode_body = { 0 }; LZ4_streamDecode_t* lz4StreamDecode = &lz4StreamDecode_body; - unsigned done = 0; for(;;) { @@ -120,7 +117,6 @@ void test_decompress(FILE* outFp, FILE* inpFp) if(decBytes <= 0) break; - done += decBytes; decOffset += decBytes; write_bin(outFp, decPtr, decBytes); @@ -153,7 +149,7 @@ size_t compare(FILE* f0, FILE* f1) size_t smallest = r0; if (r1