xwin: fix unused variables
../hw/xwin/winmultiwindowwndproc.c:418:17: warning: unused variable ‘ps’ [-Wunused-variable] 744 418 | PAINTSTRUCT ps; 745 | ^~ ../hw/xwin/InitOutput.c:114:13: warning: ‘noDriExtension’ defined but not used [-Wunused-variable] 752 114 | static Bool noDriExtension; 753 | ^~~~~~~~~~~~~~ 375/383] Compiling C object hw/xwin/Xming.exe.p/winprefs.c.obj 799../hw/xwin/winprefs.c: In function ‘LoadImageComma’: 800../hw/xwin/winprefs.c:545:14: warning: unused variable ‘convert’ [-Wunused-variable] 801 545 | Bool convert = FALSE; 802 | ^~~~~~~ Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1295>
This commit is contained in:
parent
de34a20dc3
commit
b93c614176
|
@ -111,7 +111,11 @@ static PixmapFormatRec g_PixmapFormats[] = {
|
|||
{32, 32, BITMAP_SCANLINE_PAD}
|
||||
};
|
||||
|
||||
#ifdef GLXEXT
|
||||
#ifdef XWIN_WINDOWS_DRI
|
||||
static Bool noDriExtension;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
static const ExtensionModule xwinExtensions[] = {
|
||||
#ifdef GLXEXT
|
||||
|
|
|
@ -415,7 +415,6 @@ LRESULT CALLBACK
|
|||
winTopLevelWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
POINT ptMouse;
|
||||
PAINTSTRUCT ps;
|
||||
WindowPtr pWin = NULL;
|
||||
winPrivWinPtr pWinPriv = NULL;
|
||||
ScreenPtr s_pScreen = NULL;
|
||||
|
@ -578,6 +577,7 @@ winTopLevelWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
|
||||
#ifdef XWIN_GLX_WINDOWS
|
||||
if (pWinPriv->fWglUsed) {
|
||||
PAINTSTRUCT ps;
|
||||
/*
|
||||
For regions which are being drawn by GL, the shadow framebuffer doesn't have the
|
||||
correct bits, so don't bitblt from the shadow framebuffer
|
||||
|
|
|
@ -542,7 +542,9 @@ LoadImageComma(char *fname, char *iconDirectory, int sx, int sy, int flags)
|
|||
}
|
||||
else {
|
||||
char *file = malloc(PATH_MAX + NAME_MAX + 2);
|
||||
#ifdef __CYGWIN__
|
||||
Bool convert = FALSE;
|
||||
#endif
|
||||
|
||||
if (!file)
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue