diff options
author | wm4 <wm4@nowhere> | 2013-07-23 00:45:23 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-07-23 00:45:23 +0200 |
commit | e83cbde1a4b816a64cefde1fb8bdbac403079600 (patch) | |
tree | 1ac71b13723174ab48465915fd5e9916faa7df35 /core/command.c | |
parent | 78ebb3c6fa637206bb369349ba93328b36895e2b (diff) | |
download | mpv-e83cbde1a4b816a64cefde1fb8bdbac403079600.tar.bz2 mpv-e83cbde1a4b816a64cefde1fb8bdbac403079600.tar.xz |
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).
Diffstat (limited to 'core/command.c')
-rw-r--r-- | core/command.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |