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:
parent
47df98c785
commit
a8c9c3699e
|
@ -1626,15 +1626,15 @@ glxWinCreateContext(__GLXscreen * screen,
|
|||
*/
|
||||
|
||||
static int
|
||||
GetShift(int Mask)
|
||||
GetShift(int mask)
|
||||
{
|
||||
int Shift = 0;
|
||||
int shift = 0;
|
||||
|
||||
while ((Mask &1) == 0) {
|
||||
Shift++;
|
||||
Mask >>=1;
|
||||
while ((mask &1) == 0) {
|
||||
shift++;
|
||||
mask >>=1;
|
||||
}
|
||||
return Shift;
|
||||
return shift;
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
Loading…
Reference in New Issue
Block a user