From a5d7ed5c4bf57618268756f818cb8fae985b6d3b Mon Sep 17 00:00:00 2001 From: Martin Olsson Date: Thu, 8 Dec 2011 15:36:48 +0100 Subject: [PATCH] Remove assigned-but-not-used variable "br" Fixes gcc 4.6.x -Wunused-but-set-variable compiler warning: libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -Wextra -Wall -Wunused-but-set-variable -MT libwebpdecode_la-idec.lo -MD -MP -MF .deps/libwebpdecode_la-idec.Tpo -c idec.c -fPIC -DPIC -o .libs/libwebpdecode_la-idec.o idec.c: In function 'DecodeRemaining': idec.c:371:17: warning: variable 'br' set but not used [-Wunused-but-set-variable] Change-Id: Ib037be9634b5b802ba9f1e2ef156a8fdf9630752 --- src/dec/idec.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/dec/idec.c b/src/dec/idec.c index 7ca3df4f..d5c44526 100644 --- a/src/dec/idec.c +++ b/src/dec/idec.c @@ -368,13 +368,11 @@ static VP8StatusCode DecodePartition0(WebPIDecoder* const idec) { // Remaining partitions static VP8StatusCode DecodeRemaining(WebPIDecoder* const idec) { - VP8BitReader* br; VP8Decoder* const dec = idec->dec_; VP8Io* const io = &idec->io_; assert(dec->ready_); - br = &dec->br_; for (; dec->mb_y_ < dec->mb_h_; ++dec->mb_y_) { VP8BitReader* token_br = &dec->parts_[dec->mb_y_ & (dec->num_parts_ - 1)]; if (dec->mb_x_ == 0) {