dmx: remove unused variables
Gets rid of gcc 4.8 warnings:
dmxscrinit.c: In function ‘dmxBEScreenInit’:
dmxscrinit.c:83:15: warning: unused variable ‘gcvals’ [-Wunused-variable]
XGCValues gcvals;
^
dmxwindow.c: In function ‘dmxResizeWindow’:
dmxwindow.c:860:19: warning: variable ‘pSibPriv’ set but not used [-Wunused-but-set-variable]
dmxWinPrivPtr pSibPriv;
^
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Rémi Cardona <remi@gentoo.org>
Reviewed-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit 0fbebad724
)
This commit is contained in:
parent
43251c13d7
commit
25292a3bc1
|
@ -80,7 +80,6 @@ dmxBEScreenInit(ScreenPtr pScreen)
|
|||
{
|
||||
DMXScreenInfo *dmxScreen = &dmxScreens[pScreen->myNum];
|
||||
XSetWindowAttributes attribs;
|
||||
XGCValues gcvals;
|
||||
unsigned long mask;
|
||||
int i, j;
|
||||
|
||||
|
|
|
@ -857,13 +857,9 @@ dmxResizeWindow(WindowPtr pWindow, int x, int y,
|
|||
ScreenPtr pScreen = pWindow->drawable.pScreen;
|
||||
DMXScreenInfo *dmxScreen = &dmxScreens[pScreen->myNum];
|
||||
dmxWinPrivPtr pWinPriv = DMX_GET_WINDOW_PRIV(pWindow);
|
||||
dmxWinPrivPtr pSibPriv;
|
||||
unsigned int m;
|
||||
XWindowChanges c;
|
||||
|
||||
if (pSib)
|
||||
pSibPriv = DMX_GET_WINDOW_PRIV(pSib);
|
||||
|
||||
DMX_UNWRAP(ResizeWindow, dmxScreen, pScreen);
|
||||
#if 1
|
||||
if (pScreen->ResizeWindow)
|
||||
|
|
Loading…
Reference in New Issue
Block a user