hw/xwin: Fix using index as a formal parameter in winscrinit.c shadows index()
Using index as a local variable shadows index() from strings.h winscrinit.c: In function ‘winFinishScreenInitFB’: winscrinit.c:274:28: error: declaration of ‘index’ shadows a global declaration winscrinit.c: In function ‘winFinishScreenInitNativeGDI’: winscrinit.c:623:35: error: declaration of ‘index’ shadows a global declaration Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
This commit is contained in:
parent
21faee4b38
commit
451c5d9175
|
@ -254,7 +254,7 @@ winCreateScreenResources(ScreenPtr pScreen)
|
|||
|
||||
/* See Porting Layer Definition - p. 20 */
|
||||
Bool
|
||||
winFinishScreenInitFB(int index, ScreenPtr pScreen, int argc, char **argv)
|
||||
winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv)
|
||||
{
|
||||
winScreenPriv(pScreen);
|
||||
winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
|
||||
|
@ -578,11 +578,11 @@ winFinishScreenInitFB(int index, ScreenPtr pScreen, int argc, char **argv)
|
|||
/* See Porting Layer Definition - p. 20 */
|
||||
|
||||
Bool
|
||||
winFinishScreenInitNativeGDI(int index,
|
||||
winFinishScreenInitNativeGDI(int i,
|
||||
ScreenPtr pScreen, int argc, char **argv)
|
||||
{
|
||||
winScreenPriv(pScreen);
|
||||
winScreenInfoPtr pScreenInfo = &g_ScreenInfo[index];
|
||||
winScreenInfoPtr pScreenInfo = &g_ScreenInfo[i];
|
||||
VisualPtr pVisuals = NULL;
|
||||
DepthPtr pDepths = NULL;
|
||||
VisualID rootVisual = 0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user