Browse Source

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>
tags/n2.4
Michael Niedermayer 11 years ago
parent
commit
467a55a4ee
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavutil/md5.c

+ 2
- 1
libavutil/md5.c View File

@@ -218,7 +218,8 @@ static void print_md5(uint8_t *md5)
int main(void){
uint8_t md5val[16];
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++)
in[i] = i * i;


Loading…
Cancel
Save