diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-09-05 02:31:39 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-09-05 02:43:48 +0400 |
commit | 467a55a4ee54c4ff17b503a5ea5e5c054ab23e9b (patch) | |
tree | b64e64284c4f8435da9fef56b238b41c10546371 /libavutil | |
parent | 46ef45ab59e416fae92d9fd27f050268eb2a495a (diff) |
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>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/md5.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavutil/md5.c b/libavutil/md5.c index 63fc37dafc..876bd557d4 100644 --- a/libavutil/md5.c +++ b/libavutil/md5.c @@ -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; |