diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-11-23 00:11:46 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-11-23 00:11:46 -0800 |
commit | 40118948a19f53c15d67a0493832ff2feac52cb6 (patch) | |
tree | 3688ca1bc8050b9ce62373a55234b8052dba685e | |
parent | 898c6df7d1de9fa19bedf3c1c1fd31df5ccd1116 (diff) |
Rename row pointer to avoid shadowing row integer variable
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 <alan.coopersmith@oracle.com>
-rw-r--r-- | showfont.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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'); |