Commit 3c3e11cb authored by Ulrich Sibiller's avatar Ulrich Sibiller

CheckForEmptyMask does not need to declare int n twice

commit 424dbde891486ad6a6c00c61a334031ff18f5556 Author: Alan Coopersmith <alan.coopersmith@oracle.com> Date: Fri Dec 9 10:08:55 2011 -0800 CheckForEmptyMask does not need to declare int n twice Just use the existing n variable again in the ARGB_CURSOR loop instead of creating another one. Fixes gcc -Wshadow warning: cursor.c: In function 'CheckForEmptyMask': cursor.c:155:6: warning: declaration of 'n' shadows a previous local cursor.c:146:9: warning: shadowed declaration is here Signed-off-by: 's avatarAlan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: 's avatarJamey Sharp <jamey@minilop.net> Reviewed-by: 's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent fbfef7e6
......@@ -145,7 +145,7 @@ CheckForEmptyMask(CursorBitsPtr bits)
if (bits->argb)
{
CARD32 *argb = bits->argb;
int n = bits->width * bits->height;
n = bits->width * bits->height;
while (n--)
if (*argb++ & 0xff000000) return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment