avutil/md5: workaround clang 3.5 #20849

This avoids several failures on fate.ffmpeg.org, and thus makes real
bugs easier to spot

Reviewed-by: James Darnley <james.darnley@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-09-05 00:31:39 +02:00
parent 46ef45ab59
commit 467a55a4ee
1 changed files with 2 additions and 1 deletions

View File

@ -218,7 +218,8 @@ static void print_md5(uint8_t *md5)
int main(void){ int main(void){
uint8_t md5val[16]; uint8_t md5val[16];
int i; int i;
uint8_t in[1000]; volatile uint8_t in[1000]; // volatile to workaround http://llvm.org/bugs/show_bug.cgi?id=20849
// FIXME remove volatile once it has been fixed and all fate clients are updated
for (i = 0; i < 1000; i++) for (i = 0; i < 1000; i++)
in[i] = i * i; in[i] = i * i;