diff --git a/reactos/win32ss/gdi/ntgdi/device.c b/reactos/win32ss/gdi/ntgdi/device.c index a6d6c73cb1c..7f9bd44c36e 100644 --- a/reactos/win32ss/gdi/ntgdi/device.c +++ b/reactos/win32ss/gdi/ntgdi/device.c @@ -28,12 +28,8 @@ IntGdiUnreferencePdev(PPDEVOBJ ppdev, DWORD CleanUpType) BOOL FASTCALL IntCreatePrimarySurface(VOID) { - SIZEL SurfSize; - SURFOBJ *pso; - /* Create surface */ - pso = &PDEVOBJ_pSurface(gppdevPrimary)->SurfObj; - SurfSize = pso->sizlBitmap; + PDEVOBJ_pSurface(gppdevPrimary); DPRINT("IntCreatePrimarySurface, gppdevPrimary=%p, gppdevPrimary->pSurface = %p\n", gppdevPrimary, gppdevPrimary->pSurface); diff --git a/reactos/win32ss/gdi/ntgdi/gdiobj.c b/reactos/win32ss/gdi/ntgdi/gdiobj.c index a5d75bba98c..2401d15875a 100644 --- a/reactos/win32ss/gdi/ntgdi/gdiobj.c +++ b/reactos/win32ss/gdi/ntgdi/gdiobj.c @@ -570,20 +570,18 @@ VOID NTAPI GDIOBJ_vReferenceObjectByPointer(POBJ pobj) { - ULONG cRefs; - /* Check if the object has a handle */ if (GDI_HANDLE_GET_INDEX(pobj->hHmgr)) { /* Increase the handle's reference count */ ULONG ulIndex = GDI_HANDLE_GET_INDEX(pobj->hHmgr); ASSERT((gpaulRefCount[ulIndex] & REF_MASK_COUNT) > 0); - cRefs = InterlockedIncrement((LONG*)&gpaulRefCount[ulIndex]); + InterlockedIncrement((LONG*)&gpaulRefCount[ulIndex]); } else { /* Increase the object's reference count */ - cRefs = InterlockedIncrement((LONG*)&pobj->ulShareCount); + InterlockedIncrement((LONG*)&pobj->ulShareCount); } DBG_LOGEVENT(&pobj->slhLog, EVENT_REFERENCE, cRefs); diff --git a/reactos/win32ss/gdi/ntgdi/xformobj.c b/reactos/win32ss/gdi/ntgdi/xformobj.c index a4b0b185ef1..f2adad31b05 100644 --- a/reactos/win32ss/gdi/ntgdi/xformobj.c +++ b/reactos/win32ss/gdi/ntgdi/xformobj.c @@ -254,11 +254,6 @@ XFORMOBJ_iInverse( PMATRIX pmxDst, pmxSrc; FLOATOBJ foDet; XFORM xformSrc; - union - { - FLOAT Float; - LONG Long; - } eDet; pmxDst = XFORMOBJ_pmx(pxoDst); pmxSrc = XFORMOBJ_pmx(pxoSrc); @@ -274,8 +269,6 @@ XFORMOBJ_iInverse( return DDI_ERROR; } - eDet.Long = FLOATOBJ_GetFloat(&foDet); - /* Calculate adj(A) / det(A) */ pmxDst->efM11 = pmxSrc->efM22; FLOATOBJ_Div(&pmxDst->efM11, &foDet); diff --git a/reactos/win32ss/user/ntuser/monitor.c b/reactos/win32ss/user/ntuser/monitor.c index 8e42309658b..e5b26877100 100644 --- a/reactos/win32ss/user/ntuser/monitor.c +++ b/reactos/win32ss/user/ntuser/monitor.c @@ -786,7 +786,6 @@ NtUserMonitorFromPoint( IN POINT pt, IN DWORD dwFlags) { - INT cMonitors; RECTL rc; HMONITOR hMonitor = NULL; @@ -808,7 +807,7 @@ NtUserMonitorFromPoint( UserEnterShared(); /* Find intersecting monitor */ - cMonitors = IntGetMonitorsFromRect(&rc, &hMonitor, NULL, 1, dwFlags); + IntGetMonitorsFromRect(&rc, &hMonitor, NULL, 1, dwFlags); UserLeave(); return hMonitor; diff --git a/reactos/win32ss/user/ntuser/msgqueue.c b/reactos/win32ss/user/ntuser/msgqueue.c index dde85a9314b..4aabd622c92 100644 --- a/reactos/win32ss/user/ntuser/msgqueue.c +++ b/reactos/win32ss/user/ntuser/msgqueue.c @@ -506,7 +506,6 @@ co_MsqInsertMouseMessage(MSG* Msg, DWORD flags, ULONG_PTR dwExtraInfo, BOOL Hook { LARGE_INTEGER LargeTickCount; MSLLHOOKSTRUCT MouseHookData; - PDESKTOP pDesk; PWND pwnd, pwndDesktop; HDC hdcScreen; PTHREADINFO pti; @@ -550,7 +549,6 @@ co_MsqInsertMouseMessage(MSG* Msg, DWORD flags, ULONG_PTR dwExtraInfo, BOOL Hook /* Get the desktop window */ pwndDesktop = UserGetDesktopWindow(); if (!pwndDesktop) return; - pDesk = pwndDesktop->head.rpdesk; /* Check if the mouse is captured */ Msg->hwnd = IntGetCaptureWindow(); diff --git a/reactos/win32ss/user/ntuser/winpos.c b/reactos/win32ss/user/ntuser/winpos.c index 338a0a32214..6abc848032e 100644 --- a/reactos/win32ss/user/ntuser/winpos.c +++ b/reactos/win32ss/user/ntuser/winpos.c @@ -2056,7 +2056,7 @@ co_WinPosShowWindow(PWND Wnd, INT Cmd) LONG style; PWND Parent; PTHREADINFO pti; - BOOL ShowOwned = FALSE; + // BOOL ShowOwned = FALSE; // HRGN VisibleRgn; ASSERT_REFS_CO(Wnd); @@ -2125,7 +2125,7 @@ co_WinPosShowWindow(PWND Wnd, INT Cmd) Swp |= SWP_SHOWWINDOW; if (!(style & WS_MAXIMIZE)) { - ShowOwned = TRUE; + //ShowOwned = TRUE; Swp |= co_WinPosMinMaximize(Wnd, SW_MAXIMIZE, &NewPos) | SWP_FRAMECHANGED;