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/screenshot.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/screenshot.c') diff --git a/core/screenshot.c b/core/screenshot.c index 6b07bce5a0..ee568d4b3d 100644 --- a/core/screenshot.c +++ b/core/screenshot.c @@ -187,11 +187,11 @@ static char *create_fname(struct MPContext *mpctx, char *template, break; } case 't': { - char fmt = *template; - if (!fmt) + char tfmt = *template; + if (!tfmt) goto error_exit; template++; - char fmtstr[] = {'%', fmt, '\0'}; + char fmtstr[] = {'%', tfmt, '\0'}; char buffer[80]; if (strftime(buffer, sizeof(buffer), fmtstr, local_time) == 0) buffer[0] = '\0'; -- cgit v1.2.3