hw/xwin/glx: Fix using Mask as a formal parameter shadows a global typedef of the same name

Fix using Mask as a formal parameter shadows the typedef of the same name from X.h

indirect.c: In function 'GetShift':
indirect.c:1629:14: warning: declaration of 'Mask' shadows a global declaration [-Wshadow]

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
This commit is contained in:
Jon TURNEY 2012-10-11 19:11:36 +01:00
parent 47df98c785
commit a8c9c3699e

View File

@ -1626,15 +1626,15 @@ glxWinCreateContext(__GLXscreen * screen,
*/ */
static int static int
GetShift(int Mask) GetShift(int mask)
{ {
int Shift = 0; int shift = 0;
while ((Mask &1) == 0) { while ((mask &1) == 0) {
Shift++; shift++;
Mask >>=1; mask >>=1;
} }
return Shift; return shift;
} }
static int static int