From 40118948a19f53c15d67a0493832ff2feac52cb6 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 23 Nov 2013 00:11:46 -0800 Subject: Rename row pointer to avoid shadowing row integer variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes gcc warning: showfont.c: In function ‘show_glyphs’: showfont.c:261:18: warning: declaration of ‘row’ shadows a previous local [-Wshadow] showfont.c:178:10: warning: shadowed declaration is here [-Wshadow] Signed-off-by: Alan Coopersmith --- showfont.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/showfont.c b/showfont.c index 4ba01a6..05895ac 100644 --- a/showfont.c +++ b/showfont.c @@ -258,10 +258,10 @@ show_glyphs( } offset = offsets[ch].position; for (r = 0; r < bottom; r++) { - unsigned char *row = glyphs + offset; + unsigned char *rowp = glyphs + offset; for (b = 0; b < charwidth; b++) { - putchar((row[b >> 3] & + putchar((rowp[b >> 3] & (1 << (7 - (b & 7)))) ? '#' : '-'); } putchar('\n'); -- cgit v1.2.3