[SCM] libav/experimental: Mark conditionally used variable T2 as av_unused; avoids the warning: libavutil/sha.c:183: warning: unused variable `T2'

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:49:35 UTC 2013


The following commit has been merged in the experimental branch:
commit 8b4e7c28fbd76f519d65925fa898aa2b0cbfe0ea
Author: Diego Biurrun <diego at biurrun.de>
Date:   Thu Jul 30 21:21:30 2009 +0000

    Mark conditionally used variable T2 as av_unused; avoids the warning:
    libavutil/sha.c:183: warning: unused variable `T2'
    
    Originally committed as revision 19551 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavutil/sha.c b/libavutil/sha.c
index 1f1de2c..3107dee 100644
--- a/libavutil/sha.c
+++ b/libavutil/sha.c
@@ -180,7 +180,7 @@ static void sha256_transform(uint32_t *state, const uint8_t buffer[64])
 {
     unsigned int i, a, b, c, d, e, f, g, h;
     uint32_t block[64];
-    uint32_t T1, T2;
+    uint32_t T1, av_unused(T2);
 
     a = state[0];
     b = state[1];

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list