msvc: silence some build warnings

these are related to the removal of USE_LOSSLESS_ENCODER

Change-Id: Ib0ca5bc2766c351130507bc2e657a034c8455b34
This commit is contained in:
James Zern 2012-06-13 13:51:50 -07:00
parent f180df2afd
commit 18cae37b91
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ int WebPPictureAlloc(WebPPicture* const picture) {
return 0; return 0;
} }
WebPPictureFree(picture); // erase previous buffer WebPPictureFree(picture); // erase previous buffer
picture->argb = (uint32_t*)malloc(total_size); picture->argb = (uint32_t*)malloc((size_t)total_size);
if (picture->argb == NULL) return 0; if (picture->argb == NULL) return 0;
picture->argb_stride = width; picture->argb_stride = width;
} }

View File

@ -366,7 +366,7 @@ int VP8LCreateCompressedHuffmanTree(const HuffmanTreeCode* const tree,
assert(tokens <= ending_token); assert(tokens <= ending_token);
} }
(void)ending_token; // suppress 'unused variable' warning (void)ending_token; // suppress 'unused variable' warning
return tokens - starting_token; return (int)(tokens - starting_token);
} }
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------