mioverlay.c: remove shadowed pScreen.
This is already defined at the function entry. fixes warning: CC mivaltree.lo mioverlay.c: In function 'miOverlayWindowExposures': mioverlay.c:993:23: warning: declaration of 'pScreen' shadows a previous local [-Wshadow] ScreenPtr pScreen = pWin->drawable.pScreen; ^ mioverlay.c:986:15: note: shadowed declaration is here ScreenPtr pScreen = pWin->drawable.pScreen; Signed-off-by: Dave Airlie <airlied@redhat.com>> Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
533fb62739
commit
b923443816
|
@ -990,7 +990,6 @@ miOverlayWindowExposures(WindowPtr pWin, RegionPtr prgn)
|
|||
int clientInterested =
|
||||
(pWin->eventMask | wOtherEventMasks(pWin)) & ExposureMask;
|
||||
if (clientInterested && (RegionNumRects(prgn) > RECTLIMIT)) {
|
||||
ScreenPtr pScreen = pWin->drawable.pScreen;
|
||||
miOverlayScreenPtr pPriv = MIOVERLAY_GET_SCREEN_PRIVATE(pScreen);
|
||||
BoxRec box;
|
||||
|
||||
|
|
Loading…
Reference in New Issue