From b923443816320d0636d6fd40c3c1125b93332907 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 13 Aug 2015 09:25:35 +1000 Subject: [PATCH] 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 > Reviewed-by: Keith Packard Signed-off-by: Keith Packard --- mi/mioverlay.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mi/mioverlay.c b/mi/mioverlay.c index 9f3ef0725..b8b7a5ba8 100644 --- a/mi/mioverlay.c +++ b/mi/mioverlay.c @@ -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;