Author: ion
Date: Fri Jul 19 17:06:14 2013
New Revision: 59516
URL:
http://svn.reactos.org/svn/reactos?rev=59516&view=rev
Log:
[WIN32K]: Get rid of unused variables, fix all warnings on GCC 4.7
Modified:
trunk/reactos/win32ss/gdi/ntgdi/device.c
trunk/reactos/win32ss/gdi/ntgdi/gdiobj.c
trunk/reactos/win32ss/gdi/ntgdi/xformobj.c
trunk/reactos/win32ss/user/ntuser/monitor.c
trunk/reactos/win32ss/user/ntuser/msgqueue.c
trunk/reactos/win32ss/user/ntuser/winpos.c
Modified: trunk/reactos/win32ss/gdi/ntgdi/device.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/device.c…
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/device.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/device.c [iso-8859-1] Fri Jul 19 17:06:14 2013
@@ -28,12 +28,8 @@
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);
Modified: trunk/reactos/win32ss/gdi/ntgdi/gdiobj.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/gdiobj.c…
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/gdiobj.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/gdiobj.c [iso-8859-1] Fri Jul 19 17:06:14 2013
@@ -570,20 +570,18 @@
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);
Modified: trunk/reactos/win32ss/gdi/ntgdi/xformobj.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/xformobj…
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/xformobj.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/xformobj.c [iso-8859-1] Fri Jul 19 17:06:14 2013
@@ -254,11 +254,6 @@
PMATRIX pmxDst, pmxSrc;
FLOATOBJ foDet;
XFORM xformSrc;
- union
- {
- FLOAT Float;
- LONG Long;
- } eDet;
pmxDst = XFORMOBJ_pmx(pxoDst);
pmxSrc = XFORMOBJ_pmx(pxoSrc);
@@ -273,8 +268,6 @@
/* Determinant is 0! */
return DDI_ERROR;
}
-
- eDet.Long = FLOATOBJ_GetFloat(&foDet);
/* Calculate adj(A) / det(A) */
pmxDst->efM11 = pmxSrc->efM22;
Modified: trunk/reactos/win32ss/user/ntuser/monitor.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/monito…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/monitor.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/monitor.c [iso-8859-1] Fri Jul 19 17:06:14 2013
@@ -786,7 +786,6 @@
IN POINT pt,
IN DWORD dwFlags)
{
- INT cMonitors;
RECTL rc;
HMONITOR hMonitor = NULL;
@@ -808,7 +807,7 @@
UserEnterShared();
/* Find intersecting monitor */
- cMonitors = IntGetMonitorsFromRect(&rc, &hMonitor, NULL, 1, dwFlags);
+ IntGetMonitorsFromRect(&rc, &hMonitor, NULL, 1, dwFlags);
UserLeave();
return hMonitor;
Modified: trunk/reactos/win32ss/user/ntuser/msgqueue.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/msgque…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/msgqueue.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/msgqueue.c [iso-8859-1] Fri Jul 19 17:06:14
2013
@@ -506,7 +506,6 @@
{
LARGE_INTEGER LargeTickCount;
MSLLHOOKSTRUCT MouseHookData;
- PDESKTOP pDesk;
PWND pwnd, pwndDesktop;
HDC hdcScreen;
PTHREADINFO pti;
@@ -550,7 +549,6 @@
/* Get the desktop window */
pwndDesktop = UserGetDesktopWindow();
if (!pwndDesktop) return;
- pDesk = pwndDesktop->head.rpdesk;
/* Check if the mouse is captured */
Msg->hwnd = IntGetCaptureWindow();
Modified: trunk/reactos/win32ss/user/ntuser/winpos.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/winpos…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/winpos.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/winpos.c [iso-8859-1] Fri Jul 19 17:06:14 2013
@@ -2056,7 +2056,7 @@
LONG style;
PWND Parent;
PTHREADINFO pti;
- BOOL ShowOwned = FALSE;
+ // BOOL ShowOwned = FALSE;
// HRGN VisibleRgn;
ASSERT_REFS_CO(Wnd);
@@ -2125,7 +2125,7 @@
Swp |= SWP_SHOWWINDOW;
if (!(style & WS_MAXIMIZE))
{
- ShowOwned = TRUE;
+ //ShowOwned = TRUE;
Swp |= co_WinPosMinMaximize(Wnd, SW_MAXIMIZE, &NewPos) |
SWP_FRAMECHANGED;