From dd344b43e87ef5a24a4ba739821998605e38a015 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 1 Nov 2013 13:00:15 +0100 Subject: Enable -Wshadow This one really did bite me hard (see previous commit), so enable it by default. Fix some cases of shadowing throughout the codebase. None of these change behavior, and all of these were correct code, and just tripped up the warning. --- demux/demux_lavf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'demux') diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c index 9b8881fc8a..e80db5aed4 100644 --- a/demux/demux_lavf.c +++ b/demux/demux_lavf.c @@ -649,7 +649,7 @@ static int demux_open_lavf(demuxer_t *demuxer, enum demux_check check) t = av_dict_get(c->metadata, "title", NULL, 0); demuxer_add_chapter(demuxer, t ? bstr0(t->value) : bstr0(NULL), start, end, i); - AVDictionaryEntry *t = NULL; + t = NULL; while ((t = av_dict_get(c->metadata, "", t, AV_DICT_IGNORE_SUFFIX))) { demuxer_add_chapter_info(demuxer, i, bstr0(t->key), bstr0(t->value)); -- cgit v1.2.3