From c1c728d617dc1c1c5f9fbda85e523c90e1eedaa6 Mon Sep 17 00:00:00 2001 From: Pascal Massimino Date: Thu, 28 Apr 2011 16:31:14 -0700 Subject: [PATCH] add an extra #ifdef WEBP_EXPERIMENTAL_FEATURES to avoid 'unused variable' warning Change-Id: I8a42781eab1fad75e13cb85ac3f768d2405726e0 --- src/enc/syntax.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/enc/syntax.c b/src/enc/syntax.c index f4c4da89..aab2785e 100644 --- a/src/enc/syntax.c +++ b/src/enc/syntax.c @@ -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