[FFmpeg-devel] [PATCH 4/5] avformat/hcom: Tell the compiler about set but not read variables

Michael Niedermayer michael at niedermayer.cc
Wed Aug 28 20:26:52 EEST 2019


This avoids 3 warnings

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
 libavformat/hcom.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/hcom.c b/libavformat/hcom.c
index 0d1736b620..3e1e8da236 100644
--- a/libavformat/hcom.c
+++ b/libavformat/hcom.c
@@ -38,7 +38,7 @@ static int hcom_probe(const AVProbeData *p)
 static int hcom_read_header(AVFormatContext *s)
 {
     AVStream *st;
-    unsigned data_size, rsrc_size, huffcount;
+    av_unused unsigned data_size, rsrc_size, huffcount;
     unsigned compresstype, divisor;
     unsigned dict_entries;
     int ret;
-- 
2.23.0



More information about the ffmpeg-devel mailing list