[FFmpeg-devel] [PATCH] avformat/genh: Mark coef_splitted as av_unused

Michael Niedermayer michaelni at gmx.at
Sun Oct 18 20:42:37 CEST 2015


From: Michael Niedermayer <michael at niedermayer.cc>

This avoid "libavformat/genh.c:43:14: warning: variable coef_splitted set but not used"
Fewer warnings makes it easier to see new and important warnings

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

diff --git a/libavformat/genh.c b/libavformat/genh.c
index 3a4faf9..fab5312 100644
--- a/libavformat/genh.c
+++ b/libavformat/genh.c
@@ -40,7 +40,7 @@ static int genh_read_header(AVFormatContext *s)
 {
     unsigned start_offset, header_size, codec, coef_type, coef[2];
     GENHDemuxContext *c = s->priv_data;
-    unsigned coef_splitted[2];
+    av_unused unsigned coef_splitted[2];
     int align, ch;
     AVStream *st;
 
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list