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>
			
			
This commit is contained in:
		
							parent
							
								
									f358f0d50c
								
							
						
					
					
						commit
						0fbebad724
					
				|  | @ -80,7 +80,6 @@ dmxBEScreenInit(ScreenPtr pScreen) | ||||||
| { | { | ||||||
|     DMXScreenInfo *dmxScreen = &dmxScreens[pScreen->myNum]; |     DMXScreenInfo *dmxScreen = &dmxScreens[pScreen->myNum]; | ||||||
|     XSetWindowAttributes attribs; |     XSetWindowAttributes attribs; | ||||||
|     XGCValues gcvals; |  | ||||||
|     unsigned long mask; |     unsigned long mask; | ||||||
|     int i, j; |     int i, j; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -857,13 +857,9 @@ dmxResizeWindow(WindowPtr pWindow, int x, int y, | ||||||
|     ScreenPtr pScreen = pWindow->drawable.pScreen; |     ScreenPtr pScreen = pWindow->drawable.pScreen; | ||||||
|     DMXScreenInfo *dmxScreen = &dmxScreens[pScreen->myNum]; |     DMXScreenInfo *dmxScreen = &dmxScreens[pScreen->myNum]; | ||||||
|     dmxWinPrivPtr pWinPriv = DMX_GET_WINDOW_PRIV(pWindow); |     dmxWinPrivPtr pWinPriv = DMX_GET_WINDOW_PRIV(pWindow); | ||||||
|     dmxWinPrivPtr pSibPriv; |  | ||||||
|     unsigned int m; |     unsigned int m; | ||||||
|     XWindowChanges c; |     XWindowChanges c; | ||||||
| 
 | 
 | ||||||
|     if (pSib) |  | ||||||
|         pSibPriv = DMX_GET_WINDOW_PRIV(pSib); |  | ||||||
| 
 |  | ||||||
|     DMX_UNWRAP(ResizeWindow, dmxScreen, pScreen); |     DMX_UNWRAP(ResizeWindow, dmxScreen, pScreen); | ||||||
| #if 1 | #if 1 | ||||||
|     if (pScreen->ResizeWindow) |     if (pScreen->ResizeWindow) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue