diff options
author | Yaakov Selkowitz <yselkowitz@users.sourceforge.net> | 2012-10-16 02:21:04 -0500 |
---|---|---|
committer | Yaakov Selkowitz <yselkowitz@users.sourceforge.net> | 2012-11-05 13:25:01 -0600 |
commit | 1fe30c00679bd36a6355b48b94b87564d528ff28 (patch) | |
tree | 575c52dea657ffb193bbabfa8f253a9ac56dac89 /fb/fbbltone.c | |
parent | e8d45f301845f70b76407577b92363934ca4f19e (diff) |
fb: fix shadow warnings
fbblt.c: In function 'fbBlt':
fbblt.c:76:16: warning: declaration of 'src' shadows a previous local
fbblt.c:52:13: warning: shadowed declaration is here
fbblt.c:77:16: warning: declaration of 'dst' shadows a previous local
fbblt.c:52:19: warning: shadowed declaration is here
fbbltone.c: In function 'fbBltPlane':
fbbltone.c:742:13: warning: declaration of 'w' shadows a previous local
fbbltone.c:725:9: warning: shadowed declaration is here
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'fb/fbbltone.c')
-rw-r--r-- | fb/fbbltone.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fb/fbbltone.c b/fb/fbbltone.c index eb7cf9483..bfcb5a263 100644 --- a/fb/fbbltone.c +++ b/fb/fbbltone.c @@ -739,12 +739,12 @@ fbBltPlane(FbBits * src, pm = fbReplicatePixel(planeMask, srcBpp); if (srcBpp == 24) { - int w = 24; + int tmpw = 24; rot0 = FbFirst24Rot(srcX); - if (srcX + w > FB_UNIT) - w = FB_UNIT - srcX; - srcMaskFirst = FbRot24(pm, rot0) & FbBitsMask(srcX, w); + if (srcX + tmpw > FB_UNIT) + tmpw = FB_UNIT - srcX; + srcMaskFirst = FbRot24(pm, rot0) & FbBitsMask(srcX, tmpw); } else { rot0 = 0; |