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). --- sub/img_convert.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sub/img_convert.c') diff --git a/sub/img_convert.c b/sub/img_convert.c index 547f6aa265..9a5d1bf42b 100644 --- a/sub/img_convert.c +++ b/sub/img_convert.c @@ -242,8 +242,8 @@ bool osd_conv_ass_to_rgba(struct osd_conv_cache *c, struct sub_bitmaps *imgs) memset_pic(bmp->bitmap, 0, bmp->w * 4, bmp->h, bmp->stride); - for (int n = 0; n < src.num_parts; n++) { - struct sub_bitmap *s = &src.parts[n]; + for (int p = 0; p < src.num_parts; p++) { + struct sub_bitmap *s = &src.parts[p]; // Assume mp_get_sub_bb_list() never splits sub bitmaps // So we don't clip/adjust the size of the sub bitmap -- cgit v1.2.3