add an extra #ifdef WEBP_EXPERIMENTAL_FEATURES to avoid 'unused variable' warning

Change-Id: I8a42781eab1fad75e13cb85ac3f768d2405726e0
This commit is contained in:
Pascal Massimino 2011-04-28 16:31:14 -07:00
parent 60c61d2d54
commit c1c728d617

View File

@ -186,7 +186,9 @@ static size_t GeneratePartition0(VP8Encoder* const enc) {
VP8BitWriter* const bw = &enc->bw_;
const int mb_size = enc->mb_w_ * enc->mb_h_;
uint64_t pos1, pos2, pos3;
#ifdef WEBP_EXPERIMENTAL_FEATURES
const int need_extensions = (enc->alpha_data_size_ > 0);
#endif
pos1 = VP8BitWriterPos(bw);
VP8BitWriterInit(bw, mb_size * 7 / 8); // ~7 bits per macroblock