From e83cbde1a4b816a64cefde1fb8bdbac403079600 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 23 Jul 2013 00:45:23 +0200 Subject: Fix some -Wshadow warnings In general, this warning can hint to actual bugs. We don't enable it yet, because it would conflict with some unmerged code, and we should check with clang too (this commit was done by testing with gcc). --- core/command.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/command.c') diff --git a/core/command.c b/core/command.c index 32479784e9..8d574242a2 100644 --- a/core/command.c +++ b/core/command.c @@ -499,8 +499,8 @@ static int mp_property_quvi_format(m_option_t *prop, int action, void *arg, pos = av_clip(pos, 0, res->num_srcs); } } - char *arg = res->srcs[pos]->encid; - return mp_property_quvi_format(prop, M_PROPERTY_SET, &arg, mpctx); + char *fmt = res->srcs[pos]->encid; + return mp_property_quvi_format(prop, M_PROPERTY_SET, &fmt, mpctx); } } return mp_property_generic_option(prop, action, arg, mpctx); @@ -916,7 +916,7 @@ static const char *track_type_name(enum stream_type t) } static int property_list_tracks(m_option_t *prop, int action, void *arg, - MPContext *mpctx, enum stream_type type) + MPContext *mpctx) { if (action == M_PROPERTY_GET) { char *res = NULL; -- cgit v1.2.3