diff options
author | Dave Airlie <airlied@redhat.com> | 2015-08-13 09:25:35 +1000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2015-08-17 18:23:40 -0700 |
commit | b923443816320d0636d6fd40c3c1125b93332907 (patch) | |
tree | b1fe30254a3cbc69db268ad7b1e2e0b80b79b65a /mi | |
parent | 533fb627398e20f863234d780f4463e37007515b (diff) |
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>
Diffstat (limited to 'mi')
-rw-r--r-- | mi/mioverlay.c | 1 |
1 files changed, 0 insertions, 1 deletions
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; |