mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
[WIN32K]: Get rid of unused variables, fix all warnings on GCC 4.7
svn path=/trunk/; revision=59516
This commit is contained in:
parent
2381e6ab77
commit
485cd9ca16
6 changed files with 6 additions and 22 deletions
|
@ -28,12 +28,8 @@ IntGdiUnreferencePdev(PPDEVOBJ ppdev, DWORD CleanUpType)
|
||||||
BOOL FASTCALL
|
BOOL FASTCALL
|
||||||
IntCreatePrimarySurface(VOID)
|
IntCreatePrimarySurface(VOID)
|
||||||
{
|
{
|
||||||
SIZEL SurfSize;
|
|
||||||
SURFOBJ *pso;
|
|
||||||
|
|
||||||
/* Create surface */
|
/* Create surface */
|
||||||
pso = &PDEVOBJ_pSurface(gppdevPrimary)->SurfObj;
|
PDEVOBJ_pSurface(gppdevPrimary);
|
||||||
SurfSize = pso->sizlBitmap;
|
|
||||||
|
|
||||||
DPRINT("IntCreatePrimarySurface, gppdevPrimary=%p, gppdevPrimary->pSurface = %p\n",
|
DPRINT("IntCreatePrimarySurface, gppdevPrimary=%p, gppdevPrimary->pSurface = %p\n",
|
||||||
gppdevPrimary, gppdevPrimary->pSurface);
|
gppdevPrimary, gppdevPrimary->pSurface);
|
||||||
|
|
|
@ -570,20 +570,18 @@ VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
GDIOBJ_vReferenceObjectByPointer(POBJ pobj)
|
GDIOBJ_vReferenceObjectByPointer(POBJ pobj)
|
||||||
{
|
{
|
||||||
ULONG cRefs;
|
|
||||||
|
|
||||||
/* Check if the object has a handle */
|
/* Check if the object has a handle */
|
||||||
if (GDI_HANDLE_GET_INDEX(pobj->hHmgr))
|
if (GDI_HANDLE_GET_INDEX(pobj->hHmgr))
|
||||||
{
|
{
|
||||||
/* Increase the handle's reference count */
|
/* Increase the handle's reference count */
|
||||||
ULONG ulIndex = GDI_HANDLE_GET_INDEX(pobj->hHmgr);
|
ULONG ulIndex = GDI_HANDLE_GET_INDEX(pobj->hHmgr);
|
||||||
ASSERT((gpaulRefCount[ulIndex] & REF_MASK_COUNT) > 0);
|
ASSERT((gpaulRefCount[ulIndex] & REF_MASK_COUNT) > 0);
|
||||||
cRefs = InterlockedIncrement((LONG*)&gpaulRefCount[ulIndex]);
|
InterlockedIncrement((LONG*)&gpaulRefCount[ulIndex]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Increase the object's reference count */
|
/* Increase the object's reference count */
|
||||||
cRefs = InterlockedIncrement((LONG*)&pobj->ulShareCount);
|
InterlockedIncrement((LONG*)&pobj->ulShareCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
DBG_LOGEVENT(&pobj->slhLog, EVENT_REFERENCE, cRefs);
|
DBG_LOGEVENT(&pobj->slhLog, EVENT_REFERENCE, cRefs);
|
||||||
|
|
|
@ -254,11 +254,6 @@ XFORMOBJ_iInverse(
|
||||||
PMATRIX pmxDst, pmxSrc;
|
PMATRIX pmxDst, pmxSrc;
|
||||||
FLOATOBJ foDet;
|
FLOATOBJ foDet;
|
||||||
XFORM xformSrc;
|
XFORM xformSrc;
|
||||||
union
|
|
||||||
{
|
|
||||||
FLOAT Float;
|
|
||||||
LONG Long;
|
|
||||||
} eDet;
|
|
||||||
|
|
||||||
pmxDst = XFORMOBJ_pmx(pxoDst);
|
pmxDst = XFORMOBJ_pmx(pxoDst);
|
||||||
pmxSrc = XFORMOBJ_pmx(pxoSrc);
|
pmxSrc = XFORMOBJ_pmx(pxoSrc);
|
||||||
|
@ -274,8 +269,6 @@ XFORMOBJ_iInverse(
|
||||||
return DDI_ERROR;
|
return DDI_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
eDet.Long = FLOATOBJ_GetFloat(&foDet);
|
|
||||||
|
|
||||||
/* Calculate adj(A) / det(A) */
|
/* Calculate adj(A) / det(A) */
|
||||||
pmxDst->efM11 = pmxSrc->efM22;
|
pmxDst->efM11 = pmxSrc->efM22;
|
||||||
FLOATOBJ_Div(&pmxDst->efM11, &foDet);
|
FLOATOBJ_Div(&pmxDst->efM11, &foDet);
|
||||||
|
|
|
@ -786,7 +786,6 @@ NtUserMonitorFromPoint(
|
||||||
IN POINT pt,
|
IN POINT pt,
|
||||||
IN DWORD dwFlags)
|
IN DWORD dwFlags)
|
||||||
{
|
{
|
||||||
INT cMonitors;
|
|
||||||
RECTL rc;
|
RECTL rc;
|
||||||
HMONITOR hMonitor = NULL;
|
HMONITOR hMonitor = NULL;
|
||||||
|
|
||||||
|
@ -808,7 +807,7 @@ NtUserMonitorFromPoint(
|
||||||
UserEnterShared();
|
UserEnterShared();
|
||||||
|
|
||||||
/* Find intersecting monitor */
|
/* Find intersecting monitor */
|
||||||
cMonitors = IntGetMonitorsFromRect(&rc, &hMonitor, NULL, 1, dwFlags);
|
IntGetMonitorsFromRect(&rc, &hMonitor, NULL, 1, dwFlags);
|
||||||
|
|
||||||
UserLeave();
|
UserLeave();
|
||||||
return hMonitor;
|
return hMonitor;
|
||||||
|
|
|
@ -506,7 +506,6 @@ co_MsqInsertMouseMessage(MSG* Msg, DWORD flags, ULONG_PTR dwExtraInfo, BOOL Hook
|
||||||
{
|
{
|
||||||
LARGE_INTEGER LargeTickCount;
|
LARGE_INTEGER LargeTickCount;
|
||||||
MSLLHOOKSTRUCT MouseHookData;
|
MSLLHOOKSTRUCT MouseHookData;
|
||||||
PDESKTOP pDesk;
|
|
||||||
PWND pwnd, pwndDesktop;
|
PWND pwnd, pwndDesktop;
|
||||||
HDC hdcScreen;
|
HDC hdcScreen;
|
||||||
PTHREADINFO pti;
|
PTHREADINFO pti;
|
||||||
|
@ -550,7 +549,6 @@ co_MsqInsertMouseMessage(MSG* Msg, DWORD flags, ULONG_PTR dwExtraInfo, BOOL Hook
|
||||||
/* Get the desktop window */
|
/* Get the desktop window */
|
||||||
pwndDesktop = UserGetDesktopWindow();
|
pwndDesktop = UserGetDesktopWindow();
|
||||||
if (!pwndDesktop) return;
|
if (!pwndDesktop) return;
|
||||||
pDesk = pwndDesktop->head.rpdesk;
|
|
||||||
|
|
||||||
/* Check if the mouse is captured */
|
/* Check if the mouse is captured */
|
||||||
Msg->hwnd = IntGetCaptureWindow();
|
Msg->hwnd = IntGetCaptureWindow();
|
||||||
|
|
|
@ -2056,7 +2056,7 @@ co_WinPosShowWindow(PWND Wnd, INT Cmd)
|
||||||
LONG style;
|
LONG style;
|
||||||
PWND Parent;
|
PWND Parent;
|
||||||
PTHREADINFO pti;
|
PTHREADINFO pti;
|
||||||
BOOL ShowOwned = FALSE;
|
// BOOL ShowOwned = FALSE;
|
||||||
// HRGN VisibleRgn;
|
// HRGN VisibleRgn;
|
||||||
|
|
||||||
ASSERT_REFS_CO(Wnd);
|
ASSERT_REFS_CO(Wnd);
|
||||||
|
@ -2125,7 +2125,7 @@ co_WinPosShowWindow(PWND Wnd, INT Cmd)
|
||||||
Swp |= SWP_SHOWWINDOW;
|
Swp |= SWP_SHOWWINDOW;
|
||||||
if (!(style & WS_MAXIMIZE))
|
if (!(style & WS_MAXIMIZE))
|
||||||
{
|
{
|
||||||
ShowOwned = TRUE;
|
//ShowOwned = TRUE;
|
||||||
|
|
||||||
Swp |= co_WinPosMinMaximize(Wnd, SW_MAXIMIZE, &NewPos) |
|
Swp |= co_WinPosMinMaximize(Wnd, SW_MAXIMIZE, &NewPos) |
|
||||||
SWP_FRAMECHANGED;
|
SWP_FRAMECHANGED;
|
||||||
|
|
Loading…
Reference in a new issue