Xming: Warning fix in winApplyHints()
winmultiwindowwm.c: In function ‘winApplyHints’: winmultiwindowwm.c:1587: warning: ISO C90 forbids mixed declarations and code Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
This commit is contained in:
parent
fb64414548
commit
1ba1b12d24
|
@ -1553,6 +1553,7 @@ winApplyHints (Display *pDisplay, Window iWindow, HWND hWnd, HWND *zstyle)
|
|||
int format;
|
||||
unsigned long hint = 0, maxmin = 0, style, nitems = 0 , left = 0;
|
||||
WindowPtr pWin = GetProp (hWnd, WIN_WINDOW_PROP);
|
||||
MwmHints *mwm_hint = NULL;
|
||||
|
||||
if (!hWnd) return;
|
||||
if (!IsWindow (hWnd)) return;
|
||||
|
@ -1584,7 +1585,6 @@ winApplyHints (Display *pDisplay, Window iWindow, HWND hWnd, HWND *zstyle)
|
|||
}
|
||||
|
||||
nitems = left = 0;
|
||||
MwmHints *mwm_hint = NULL;
|
||||
if (XGetWindowProperty(pDisplay, iWindow, motif_wm_hints, 0L,
|
||||
PropMwmHintsElements, False, motif_wm_hints, &type, &format,
|
||||
&nitems, &left, (unsigned char **)&mwm_hint) == Success)
|
||||
|
|
Loading…
Reference in New Issue
Block a user