Skip to content

Commit

Permalink
libavutil/tests/md5: Avoid warnings
Browse files Browse the repository at this point in the history
Those are always showing up on Patchwork
when FATE tests are failing, covering
some possibly more useful information.

Signed-off-by: softworkz <softworkz@hotmail.com>
  • Loading branch information
softworkz committed Jan 21, 2022
1 parent 7512293 commit e54769c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions libavutil/tests/md5.c
Expand Up @@ -33,8 +33,11 @@ int main(void)
{
uint8_t md5val[16];
int i;
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

#if defined(__clang__) && defined(__clang_major__) && __clang_major__ < 4
volatile // volatile to workaround http://llvm.org/bugs/show_bug.cgi?id=20849
#endif
uint8_t in[1000];

for (i = 0; i < 1000; i++)
in[i] = i * i;
Expand Down

0 comments on commit e54769c

Please sign in to comment.