diff options
author | Diego Biurrun <diego@biurrun.de> | 2012-02-10 15:10:42 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2012-02-13 19:20:54 +0100 |
commit | 6df5c528ca045ab4b65f2a529a8e8bd2642f47e5 (patch) | |
tree | 553b52982dcb76a8158862571f1f9b7cc7106644 /libavutil | |
parent | 7331b6e718243c276d391898199e08ba3cdb9545 (diff) | |
download | ffmpeg-6df5c528ca045ab4b65f2a529a8e8bd2642f47e5.tar.gz |
Move some conditionally used variables into the block where they are used.
This allows dropping the av_unused argument from them.
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/sha.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavutil/sha.c b/libavutil/sha.c index 5af742dc48..cbe1608a26 100644 --- a/libavutil/sha.c +++ b/libavutil/sha.c @@ -181,7 +181,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, av_unused(T2); + uint32_t T1; a = state[0]; b = state[1]; @@ -193,6 +193,7 @@ static void sha256_transform(uint32_t *state, const uint8_t buffer[64]) h = state[7]; #if CONFIG_SMALL for (i = 0; i < 64; i++) { + uint32_t T2; if (i < 16) T1 = blk0(i); else |