From e0b6fdeb8d9a54c357ff9fbf552e1ff4b6282282 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 1 Nov 2013 17:33:11 +0100 Subject: Fix some more -Wshadow warnings These aren't printed with newer gcc or clang versions for some reason. All of them seem to be about local variables shadowing global functions. --- video/sws_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'video/sws_utils.c') diff --git a/video/sws_utils.c b/video/sws_utils.c index c6696ec37b..27cd0c7330 100644 --- a/video/sws_utils.c +++ b/video/sws_utils.c @@ -161,9 +161,9 @@ static void free_mp_sws(void *p) // You're supposed to set your scaling parameters on the returned context. // Free the context with talloc_free(). -struct mp_sws_context *mp_sws_alloc(void *talloc_parent) +struct mp_sws_context *mp_sws_alloc(void *talloc_ctx) { - struct mp_sws_context *ctx = talloc_ptrtype(talloc_parent, ctx); + struct mp_sws_context *ctx = talloc_ptrtype(talloc_ctx, ctx); *ctx = (struct mp_sws_context) { .flags = SWS_BILINEAR, .contrast = 1 << 16, // 1.0 in 16.16 fixed point -- cgit v1.2.3