Mesa (master): g3dvl: remove some stale variable increment

Christian König deathsimple at kemper.freedesktop.org
Thu Nov 3 13:40:52 UTC 2011


Module: Mesa
Branch: master
Commit: 8a7e645c9befb8578c8a571ccc951ed908d177ae
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8a7e645c9befb8578c8a571ccc951ed908d177ae

Author: Christian König <deathsimple at vodafone.de>
Date:   Wed Nov  2 13:54:05 2011 +0100

g3dvl: remove some stale variable increment

Incrementing "td" before initializing it is
pointless and just leads to an uninitialized
variable warning with MSVC.

Signed-off-by: Christian König <deathsimple at vodafone.de>

---

 src/gallium/auxiliary/vl/vl_mpeg12_decoder.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/vl/vl_mpeg12_decoder.c b/src/gallium/auxiliary/vl/vl_mpeg12_decoder.c
index 7e7fa99..d4b8ae0 100644
--- a/src/gallium/auxiliary/vl/vl_mpeg12_decoder.c
+++ b/src/gallium/auxiliary/vl/vl_mpeg12_decoder.c
@@ -340,7 +340,7 @@ UploadYcbcrBlocks(struct vl_mpeg12_decoder *dec,
    intra = mb->macroblock_type & PIPE_MPEG12_MB_TYPE_INTRA ? 1 : 0;
 
    for (y = 0; y < 2; ++y) {
-      for (x = 0; x < 2; ++x, ++tb) {
+      for (x = 0; x < 2; ++x) {
          if (mb->coded_block_pattern & const_empty_block_mask_420[0][y][x]) {
 
             struct vl_ycbcr_block *stream = buf->ycbcr_stream[0];




More information about the mesa-commit mailing list