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

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Sun Jan 23 12:23:23 EET 2022


And use an ordinary stack variable.

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

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);
 
-- 
2.32.0



More information about the ffmpeg-devel mailing list