Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-09-05 02:31:39 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-09-05 02:43:48 +0400
commit467a55a4ee54c4ff17b503a5ea5e5c054ab23e9b (patch)
treeb64e64284c4f8435da9fef56b238b41c10546371 /libavutil/md5.c
parent46ef45ab59e416fae92d9fd27f050268eb2a495a (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/md5.c')
-rw-r--r--libavutil/md5.c3
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;