diff mbox series

[FFmpeg-devel] avutil/tests/adler32: Remove unnecessary volatile

Message ID AM7PR03MB666045BD87DEE1D47C23472D8F5D9@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit 98cef1ebbea61a605d151f5b46b453321e1b63a6
Headers show
Series [FFmpeg-devel] avutil/tests/adler32: Remove unnecessary volatile | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished
andriy/make_aarch64_jetson success Make finished
andriy/make_fate_aarch64_jetson success Make fate finished
andriy/make_armv7_RPi4 success Make finished
andriy/make_fate_armv7_RPi4 success Make fate finished

Commit Message

Andreas Rheinhardt Jan. 23, 2022, 10:23 a.m. UTC
And use an ordinary stack variable.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavutil/tests/adler32.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/libavutil/tests/adler32.c b/libavutil/tests/adler32.c
index 13f760b477..356e1a97e7 100644
--- a/libavutil/tests/adler32.c
+++ b/libavutil/tests/adler32.c
@@ -27,12 +27,11 @@ 
 
 #define LEN 7001
 
-static volatile int checksum;
-
 int main(int argc, char **argv)
 {
     int i;
     uint8_t data[LEN];
+    AVAdler checksum;
 
     av_log_set_level(AV_LOG_DEBUG);