Author: akhaldi Date: Sun Sep 11 16:56:56 2011 New Revision: 53693
URL: http://svn.reactos.org/svn/reactos?rev=53693&view=rev Log: * Comment out some unused but set variables, remove some others. * Allow warnings for some 3rd party code.
Modified: trunk/reactos/base/shell/cmd/cmdinput.c trunk/reactos/base/shell/cmd/filecomp.c trunk/reactos/base/shell/explorer-new/traywnd.c trunk/reactos/base/system/services/rpcserver.c trunk/reactos/dll/cpl/usrmgr/groups.c trunk/reactos/dll/cpl/usrmgr/users.c trunk/reactos/dll/directx/ksproxy/datatype.cpp trunk/reactos/dll/ntdll/ldr/ldrutils.c trunk/reactos/dll/win32/advapi32/sec/lsa.c trunk/reactos/dll/win32/dbghelp/CMakeLists.txt trunk/reactos/dll/win32/lsasrv/authport.c trunk/reactos/dll/win32/setupapi/cfgmgr.c trunk/reactos/dll/win32/setupapi/devinst.c trunk/reactos/dll/win32/user32/controls/edit.c trunk/reactos/dll/win32/user32/controls/scrollbar.c trunk/reactos/dll/win32/user32/windows/cursoricon.c trunk/reactos/dll/win32/user32/windows/nonclient.c trunk/reactos/dll/win32/winmm/CMakeLists.txt trunk/reactos/drivers/filesystems/ext2/CMakeLists.txt trunk/reactos/drivers/input/kbdclass/kbdclass.c trunk/reactos/drivers/ksfilter/ks/api.c trunk/reactos/drivers/ksfilter/ks/irp.c trunk/reactos/drivers/network/tcpip/tcpip/dispatch.c trunk/reactos/drivers/wdm/audio/backpln/portcls/pin_wavecyclic.cpp trunk/reactos/drivers/wdm/audio/backpln/portcls/pin_wavepci.cpp trunk/reactos/drivers/wdm/audio/backpln/portcls/propertyhandler.cpp trunk/reactos/drivers/wdm/audio/legacy/wdmaud/control.c trunk/reactos/drivers/wdm/audio/legacy/wdmaud/entry.c trunk/reactos/drivers/wdm/audio/legacy/wdmaud/mmixer.c trunk/reactos/lib/3rdparty/fullfat/CMakeLists.txt trunk/reactos/ntoskrnl/config/cmsysini.c trunk/reactos/ntoskrnl/ex/hdlsterm.c trunk/reactos/ntoskrnl/io/iomgr/volume.c trunk/reactos/ntoskrnl/mm/ARM3/virtual.c trunk/reactos/ntoskrnl/mm/ARM3/zeropage.c trunk/reactos/subsystems/win32/csrss/csrsrv/api/process.c trunk/reactos/subsystems/win32/csrss/csrsrv/thredsup.c trunk/reactos/subsystems/win32/csrss/win32csr/alias.c trunk/reactos/subsystems/win32/csrss/win32csr/dllmain.c trunk/reactos/subsystems/win32/win32k/dib/dib24bpp.c trunk/reactos/subsystems/win32/win32k/eng/alphablend.c trunk/reactos/subsystems/win32/win32k/eng/bitblt.c trunk/reactos/subsystems/win32/win32k/eng/stretchblt.c trunk/reactos/subsystems/win32/win32k/ntuser/display.c trunk/reactos/subsystems/win32/win32k/ntuser/input.c trunk/reactos/subsystems/win32/win32k/ntuser/message.c trunk/reactos/subsystems/win32/win32k/ntuser/window.c trunk/reactos/subsystems/win32/win32k/objects/arc.c trunk/reactos/subsystems/win32/win32k/objects/cliprgn.c trunk/reactos/subsystems/win32/win32k/objects/dibobj.c trunk/reactos/subsystems/win32/win32k/objects/gdibatch.c trunk/reactos/subsystems/win32/win32k/objects/gdipool.c trunk/reactos/subsystems/win32/win32k/objects/region.c
Modified: trunk/reactos/base/shell/cmd/cmdinput.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/cmdinput.c?r... ============================================================================== --- trunk/reactos/base/shell/cmd/cmdinput.c [iso-8859-1] (original) +++ trunk/reactos/base/shell/cmd/cmdinput.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -138,15 +138,17 @@ INT current = 0; /*the position of the cursor in the string (str)*/ INT charcount = 0;/*chars in the string (str)*/ INPUT_RECORD ir; +#ifdef FEATURE_UNIX_FILENAME_COMPLETION WORD wLastKey = 0; +#endif TCHAR ch; - BOOL bContinue=FALSE;/*is TRUE the second case will not be executed*/ BOOL bReturn = FALSE; BOOL bCharInput; #ifdef FEATURE_4NT_FILENAME_COMPLETION TCHAR szPath[MAX_PATH]; #endif #ifdef FEATURE_HISTORY + //BOOL bContinue=FALSE;/*is TRUE the second case will not be executed*/ TCHAR PreviousChar; #endif
@@ -209,7 +211,7 @@ current = charcount = 0; curx = orgx; cury = orgy; - bContinue=TRUE; + //bContinue=TRUE; break; }
@@ -223,7 +225,7 @@ current = charcount = _tcslen (str); ConOutPrintf (_T("%s"), str); GetCursorXY (&curx, &cury); - bContinue=TRUE; + //bContinue=TRUE; break; }
@@ -599,7 +601,7 @@ } }
- wLastKey = ir.Event.KeyEvent.wVirtualKeyCode; + //wLastKey = ir.Event.KeyEvent.wVirtualKeyCode; } while (!bReturn);
Modified: trunk/reactos/base/shell/cmd/filecomp.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/filecomp.c?r... ============================================================================== --- trunk/reactos/base/shell/cmd/filecomp.c [iso-8859-1] (original) +++ trunk/reactos/base/shell/cmd/filecomp.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -511,9 +511,9 @@ /* Length of string before we complete it */ INT StartLength; /* Length of string after completed */ - INT EndLength; + //INT EndLength; /* The number of chars added too it */ - static INT DiffLength = 0; + //static INT DiffLength = 0; /* Used to find and assemble the string that is returned */ TCHAR szBaseWord[MAX_PATH]; TCHAR szPrefix[MAX_PATH]; @@ -751,8 +751,8 @@ _tcscat(strOut,_T("""));
_tcscpy(LastReturned,strOut); - EndLength = _tcslen(strOut); - DiffLength = EndLength - StartLength; + //EndLength = _tcslen(strOut); + //DiffLength = EndLength - StartLength; if(FileList != NULL) cmd_free(FileList);
Modified: trunk/reactos/base/shell/explorer-new/traywnd.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer-new/tra... ============================================================================== --- trunk/reactos/base/shell/explorer-new/traywnd.c [iso-8859-1] (original) +++ trunk/reactos/base/shell/explorer-new/traywnd.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -321,11 +321,11 @@ IN OUT RECT *pRect) { RECT rcScreen; - BOOL Horizontal; + //BOOL Horizontal; HMONITOR hMon; SIZE szMax, szWnd;
- Horizontal = ITrayWindowImpl_IsPosHorizontal(This); + //Horizontal = ITrayWindowImpl_IsPosHorizontal(This);
szWnd.cx = pRect->right - pRect->left; szWnd.cy = pRect->bottom - pRect->top;
Modified: trunk/reactos/base/system/services/rpcserver.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/services/rpcser... ============================================================================== --- trunk/reactos/base/system/services/rpcserver.c [iso-8859-1] (original) +++ trunk/reactos/base/system/services/rpcserver.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -4409,9 +4409,9 @@ if (InfoW.dwInfoLevel == SERVICE_CONFIG_DESCRIPTION) { LPSERVICE_DESCRIPTIONW lpServiceDescriptonW; - LPSERVICE_DESCRIPTIONA lpServiceDescriptonA; - - lpServiceDescriptonA = Info.psd; + //LPSERVICE_DESCRIPTIONA lpServiceDescriptonA; + + //lpServiceDescriptonA = Info.psd;
///if (lpServiceDescriptonA && ///lpServiceDescriptonA->lpDescription)
Modified: trunk/reactos/dll/cpl/usrmgr/groups.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/usrmgr/groups.c?rev... ============================================================================== --- trunk/reactos/dll/cpl/usrmgr/groups.c [iso-8859-1] (original) +++ trunk/reactos/dll/cpl/usrmgr/groups.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -346,7 +346,7 @@ { TCHAR szOldGroupName[UNLEN]; TCHAR szNewGroupName[UNLEN]; - LOCALGROUP_INFO_0 lgrpi0; + //LOCALGROUP_INFO_0 lgrpi0; NET_API_STATUS status;
/* Leave, if there is no valid listview item */ @@ -375,7 +375,7 @@ return FALSE;
/* Change the user name */ - lgrpi0.lgrpi0_name = szNewGroupName; + //lgrpi0.lgrpi0_name = szNewGroupName;
#if 0 status = NetLocalGroupSetInfo(NULL, szOldGroupName, 0, (LPBYTE)&lgrpi0, NULL);
Modified: trunk/reactos/dll/cpl/usrmgr/users.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/usrmgr/users.c?rev=... ============================================================================== --- trunk/reactos/dll/cpl/usrmgr/users.c [iso-8859-1] (original) +++ trunk/reactos/dll/cpl/usrmgr/users.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -498,7 +498,7 @@ { TCHAR szOldUserName[UNLEN]; TCHAR szNewUserName[UNLEN]; - USER_INFO_0 useri0; + //USER_INFO_0 useri0; NET_API_STATUS status;
/* Leave, if there is no valid listview item */ @@ -527,7 +527,7 @@ return FALSE;
/* Change the user name */ - useri0.usri0_name = szNewUserName; + //useri0.usri0_name = szNewUserName;
#if 0 status = NetUserSetInfo(NULL, szOldUserName, 0, (LPBYTE)&useri0, NULL);
Modified: trunk/reactos/dll/directx/ksproxy/datatype.cpp URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ksproxy/datatyp... ============================================================================== --- trunk/reactos/dll/directx/ksproxy/datatype.cpp [iso-8859-1] (original) +++ trunk/reactos/dll/directx/ksproxy/datatype.cpp [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -101,7 +101,7 @@ PKSMULTIPLE_ITEM DataList; PKSDATARANGE DataRange; ULONG Index; - HRESULT hr = S_FALSE; + //HRESULT hr = S_FALSE;
#ifdef KSPROXY_TRACE OutputDebugStringW(L"CKsDataTypeHandler::KsIsMediaTypeInRanges\n"); @@ -135,7 +135,7 @@ if (!IsEqualGUID(m_Type->formattype, FORMAT_WaveFormatEx) && !IsEqualGUID(DataRange->Specifier, FORMAT_WaveFormatEx)) { //found match - hr = S_OK; + //hr = S_OK; break; }
@@ -151,7 +151,7 @@ Format->nChannels <= AudioRange->MaximumChannels) { // found match - hr = S_OK; + //hr = S_OK; break; } }
Modified: trunk/reactos/dll/ntdll/ldr/ldrutils.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/ntdll/ldr/ldrutils.c?re... ============================================================================== --- trunk/reactos/dll/ntdll/ldr/ldrutils.c [iso-8859-1] (original) +++ trunk/reactos/dll/ntdll/ldr/ldrutils.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -1591,7 +1591,7 @@ PWCHAR Buffer, BufEnd = NULL; ULONG Length = 0; WCHAR p; - PWCHAR pp; + //PWCHAR pp;
/* Check if we don't have a search path */ if (!ActualSearchPath) *SearchPath = LdrpDefaultPath.Buffer; @@ -1716,7 +1716,7 @@ BufEnd = Buffer;
/* Update string position */ - pp = ActualSearchPath++; + //pp = ActualSearchPath++; } else {
Modified: trunk/reactos/dll/win32/advapi32/sec/lsa.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/sec/lsa.... ============================================================================== --- trunk/reactos/dll/win32/advapi32/sec/lsa.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/advapi32/sec/lsa.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -903,7 +903,6 @@ IN ULONG CountOfRights) { LSAPR_USER_RIGHT_SET UserRightSet; - NTSTATUS Status;
TRACE("(%p,%p,%d,%p,0x%08x) stub\n", PolicyHandle, AccountSid, AllRights, UserRights, CountOfRights);
@@ -912,14 +911,14 @@
RpcTryExcept { - Status = LsarRemoveAccountRights((LSAPR_HANDLE)PolicyHandle, - (PRPC_SID)AccountSid, - AllRights, - &UserRightSet); - } - RpcExcept(EXCEPTION_EXECUTE_HANDLER) - { - Status = I_RpcMapWin32Status(RpcExceptionCode()); + LsarRemoveAccountRights((LSAPR_HANDLE)PolicyHandle, + (PRPC_SID)AccountSid, + AllRights, + &UserRightSet); + } + RpcExcept(EXCEPTION_EXECUTE_HANDLER) + { + I_RpcMapWin32Status(RpcExceptionCode()); } RpcEndExcept;
Modified: trunk/reactos/dll/win32/dbghelp/CMakeLists.txt URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/dbghelp/CMakeList... ============================================================================== --- trunk/reactos/dll/win32/dbghelp/CMakeLists.txt [iso-8859-1] (original) +++ trunk/reactos/dll/win32/dbghelp/CMakeLists.txt [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -45,6 +45,7 @@ ${CMAKE_CURRENT_BINARY_DIR}/dbghelp.def)
add_library(dbghelp SHARED ${SOURCE}) +allow_warnings(dbghelp) set_module_type(dbghelp win32dll) target_link_libraries(dbghelp wine ${PSEH_LIB} oldnames) add_delay_importlibs(dbghelp version)
Modified: trunk/reactos/dll/win32/lsasrv/authport.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/lsasrv/authport.c... ============================================================================== --- trunk/reactos/dll/win32/lsasrv/authport.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/lsasrv/authport.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -27,8 +27,6 @@ PPORT_MESSAGE Reply = NULL; NTSTATUS Status;
- NTSTATUS Status2; - HANDLE ConnectionHandle = NULL; PVOID Context = NULL; BOOLEAN Accept; @@ -56,15 +54,15 @@ TRACE("Port connection request\n");
Accept = TRUE; - Status2 = NtAcceptConnectPort(&ConnectionHandle, - &Context, - &Request.Header, - Accept, - NULL, - NULL); + NtAcceptConnectPort(&ConnectionHandle, + &Context, + &Request.Header, + Accept, + NULL, + NULL);
- Status2 = NtCompleteConnectPort(ConnectionHandle); + NtCompleteConnectPort(ConnectionHandle);
} else if (Request.Header.u2.s2.Type == LPC_PORT_CLOSED ||
Modified: trunk/reactos/dll/win32/setupapi/cfgmgr.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/setupapi/cfgmgr.c... ============================================================================== --- trunk/reactos/dll/win32/setupapi/cfgmgr.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/setupapi/cfgmgr.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -3972,7 +3972,6 @@ REGDISPOSITION Disposition, PHKEY phkClass, ULONG ulFlags, HMACHINE hMachine) { - CONFIGRET rc = CR_SUCCESS; LPWSTR pszClassNameW = NULL;
TRACE("%p %s %lx %lx %p %lx %lx\n", @@ -3985,8 +3984,8 @@ return CR_INVALID_DATA; }
- rc = CM_Open_Class_Key_ExW(pClassGuid, pszClassNameW, samDesired, - Disposition, phkClass, ulFlags, hMachine); + CM_Open_Class_Key_ExW(pClassGuid, pszClassNameW, samDesired, + Disposition, phkClass, ulFlags, hMachine);
if (pszClassNameW != NULL) MyFree(pszClassNameW);
Modified: trunk/reactos/dll/win32/setupapi/devinst.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/setupapi/devinst.... ============================================================================== --- trunk/reactos/dll/win32/setupapi/devinst.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/setupapi/devinst.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -134,12 +134,13 @@ OUT PDWORD ScoreSuiteMask) { LPWSTR Section = NULL; - LPCWSTR pExtensionPlatform, pExtensionArchitecture; + //LPCWSTR pExtensionPlatform; + LPCWSTR pExtensionArchitecture; LPWSTR Fields[6]; DWORD i; BOOL ret = FALSE;
- static const WCHAR ExtensionPlatformNone[] = {'.',0}; + //static const WCHAR ExtensionPlatformNone[] = {'.',0}; static const WCHAR ExtensionPlatformNT[] = {'.','N','T',0}; static const WCHAR ExtensionPlatformWindows[] = {'.','W','i','n',0};
@@ -167,14 +168,14 @@ switch (PlatformInfo->Platform) { case VER_PLATFORM_WIN32_WINDOWS: - pExtensionPlatform = ExtensionPlatformWindows; + //pExtensionPlatform = ExtensionPlatformWindows; break; case VER_PLATFORM_WIN32_NT: - pExtensionPlatform = ExtensionPlatformNT; + //pExtensionPlatform = ExtensionPlatformNT; break; default: ERR("Unknown platform 0x%lx\n", PlatformInfo->Platform); - pExtensionPlatform = ExtensionPlatformNone; + //pExtensionPlatform = ExtensionPlatformNone; break; } switch (PlatformInfo->ProcessorArchitecture)
Modified: trunk/reactos/dll/win32/user32/controls/edit.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/controls/e... ============================================================================== --- trunk/reactos/dll/win32/user32/controls/edit.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/user32/controls/edit.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -1090,7 +1090,7 @@ if (!es->text) {
CHAR *textA = NULL; // ReactOS Hacked! - UINT countA = 0; + //UINT countA = 0;
if(es->hloc32W) { @@ -1098,7 +1098,7 @@ { TRACE("Synchronizing with 32-bit ANSI buffer\n"); textA = LocalLock(es->hloc32A); - countA = strlen(textA) + 1; + //countA = strlen(textA) + 1; } } else {
Modified: trunk/reactos/dll/win32/user32/controls/scrollbar.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/controls/s... ============================================================================== --- trunk/reactos/dll/win32/user32/controls/scrollbar.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/user32/controls/scrollbar.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -310,7 +310,7 @@ void IntDrawScrollBar(HWND Wnd, HDC DC, INT Bar) { - INT ThumbSize; + //INT ThumbSize; SCROLLBARINFO Info; BOOL Vertical;
@@ -344,7 +344,7 @@ return; }
- ThumbSize = Info.xyThumbBottom - Info.xyThumbTop; + //ThumbSize = Info.xyThumbBottom - Info.xyThumbTop;
/* * Draw the arrows.
Modified: trunk/reactos/dll/win32/user32/windows/cursoricon.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/cu... ============================================================================== --- trunk/reactos/dll/win32/user32/windows/cursoricon.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/user32/windows/cursoricon.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -883,7 +883,8 @@ { HANDLE handle = 0; HICON hIcon = 0; - HRSRC hRsrc, hGroupRsrc; + HRSRC hRsrc; + //HRSRC hGroupRsrc; CURSORICONDIR *dir; CURSORICONDIRENTRY *dirEntry; LPBYTE bits; @@ -906,7 +907,7 @@ if (!(hRsrc = FindResourceW( hInstance, name, (LPWSTR)(fCursor ? RT_GROUP_CURSOR : RT_GROUP_ICON) ))) return 0; - hGroupRsrc = hRsrc; + //hGroupRsrc = hRsrc;
/* Find the best entry in the directory */
Modified: trunk/reactos/dll/win32/user32/windows/nonclient.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/no... ============================================================================== --- trunk/reactos/dll/win32/user32/windows/nonclient.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/user32/windows/nonclient.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -1045,19 +1045,19 @@ VOID DefWndTrackScrollBar(HWND hWnd, WPARAM wParam, POINT Point) { - INT ScrollBar; + //INT ScrollBar;
if ((wParam & 0xfff0) == SC_HSCROLL) { if ((wParam & 0x0f) != HTHSCROLL) return; - ScrollBar = SB_HORZ; + //ScrollBar = SB_HORZ; } else { if ((wParam & 0x0f) != HTVSCROLL) return; - ScrollBar = SB_VERT; + //ScrollBar = SB_VERT; }
/* FIXME */
Modified: trunk/reactos/dll/win32/winmm/CMakeLists.txt URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/winmm/CMakeLists.... ============================================================================== --- trunk/reactos/dll/win32/winmm/CMakeLists.txt [iso-8859-1] (original) +++ trunk/reactos/dll/win32/winmm/CMakeLists.txt [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -21,15 +21,11 @@ ${CMAKE_CURRENT_BINARY_DIR}/winmm.def)
add_library(winmm SHARED ${SOURCE}) - +allow_warnings(winmm) set_module_type(winmm win32dll) - -target_link_libraries(winmm - wine - ${PSEH_LIB}) +target_link_libraries(winmm wine ${PSEH_LIB})
add_importlibs(winmm advapi32 user32 msvcrt kernel32 ntdll) -
add_subdirectory(midimap) add_cd_file(TARGET winmm DESTINATION reactos/system32 FOR all)
Modified: trunk/reactos/drivers/filesystems/ext2/CMakeLists.txt URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ext2/CM... ============================================================================== --- trunk/reactos/drivers/filesystems/ext2/CMakeLists.txt [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/ext2/CMakeLists.txt [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -22,10 +22,9 @@ src/shutdown.c)
add_library(ext2fs SHARED ${SOURCE}) - +allow_warnings(ext2fs) target_link_libraries(ext2fs ${PSEH_LIB}) add_pch(ext2fs inc/ext2fsd.h) set_module_type(ext2fs kernelmodedriver) add_importlibs(ext2fs ntoskrnl hal) - add_cd_file(TARGET ext2fs DESTINATION reactos/system32/drivers NO_CAB FOR all)
Modified: trunk/reactos/drivers/input/kbdclass/kbdclass.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/input/kbdclass/kbdc... ============================================================================== --- trunk/reactos/drivers/input/kbdclass/kbdclass.c [iso-8859-1] (original) +++ trunk/reactos/drivers/input/kbdclass/kbdclass.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -119,7 +119,7 @@ IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp) { - PCLASS_DEVICE_EXTENSION DeviceExtension; + //PCLASS_DEVICE_EXTENSION DeviceExtension; NTSTATUS Status = STATUS_NOT_SUPPORTED;
TRACE_(CLASS_NAME, "IRP_MJ_DEVICE_CONTROL\n"); @@ -127,7 +127,7 @@ if (!((PCOMMON_DEVICE_EXTENSION)DeviceObject->DeviceExtension)->IsClassDO) return ForwardIrpAndForget(DeviceObject, Irp);
- DeviceExtension = (PCLASS_DEVICE_EXTENSION)DeviceObject->DeviceExtension; + //DeviceExtension = (PCLASS_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
switch (IoGetCurrentIrpStackLocation(Irp)->Parameters.DeviceIoControl.IoControlCode) {
Modified: trunk/reactos/drivers/ksfilter/ks/api.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/ksfilter/ks/api.c?r... ============================================================================== --- trunk/reactos/drivers/ksfilter/ks/api.c [iso-8859-1] (original) +++ trunk/reactos/drivers/ksfilter/ks/api.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -613,7 +613,7 @@ IN KSDISPATCH_TABLE* Table) { PIO_STACK_LOCATION IoStack; - PDEVICE_EXTENSION DeviceExtension; + //PDEVICE_EXTENSION DeviceExtension; //PKSIDEVICE_HEADER DeviceHeader; PKSIOBJECT_HEADER ObjectHeader; //PKSOBJECT_CREATE_ITEM CreateItem; @@ -631,7 +631,7 @@ /* get current stack location */ IoStack = IoGetCurrentIrpStackLocation(Irp); /* get device extension */ - DeviceExtension = (PDEVICE_EXTENSION)IoStack->DeviceObject->DeviceExtension; + //DeviceExtension = (PDEVICE_EXTENSION)IoStack->DeviceObject->DeviceExtension; /* get device header */ //DeviceHeader = DeviceExtension->DeviceHeader;
Modified: trunk/reactos/drivers/ksfilter/ks/irp.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/ksfilter/ks/irp.c?r... ============================================================================== --- trunk/reactos/drivers/ksfilter/ks/irp.c [iso-8859-1] (original) +++ trunk/reactos/drivers/ksfilter/ks/irp.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -652,7 +652,7 @@ PKSSTREAM_HEADER StreamHeader; PIO_STACK_LOCATION IoStack; ULONG Length; - BOOLEAN AllocateMdl = FALSE; + //BOOLEAN AllocateMdl = FALSE;
/* get current irp stack */ IoStack = IoGetCurrentIrpStackLocation(Irp); @@ -1024,7 +1024,7 @@ }
/* break out to probe for the irp */ - AllocateMdl = TRUE; + //AllocateMdl = TRUE; break; } } @@ -1903,9 +1903,9 @@ IN PIRP Irp) { PIO_STACK_LOCATION IoStack; - PDEVICE_EXTENSION DeviceExtension; + //PDEVICE_EXTENSION DeviceExtension; PKSIOBJECT_HEADER ObjectHeader; - PKSIDEVICE_HEADER DeviceHeader; + //PKSIDEVICE_HEADER DeviceHeader; PDRIVER_DISPATCH Dispatch; NTSTATUS Status;
@@ -1913,9 +1913,9 @@ IoStack = IoGetCurrentIrpStackLocation(Irp);
/* get device extension */ - DeviceExtension = (PDEVICE_EXTENSION)DeviceObject->DeviceExtension; + //DeviceExtension = (PDEVICE_EXTENSION)DeviceObject->DeviceExtension; /* get device header */ - DeviceHeader = DeviceExtension->DeviceHeader; + //DeviceHeader = DeviceExtension->DeviceHeader;
ASSERT(IoStack->FileObject);
Modified: trunk/reactos/drivers/network/tcpip/tcpip/dispatch.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/tcpip/tcpip... ============================================================================== --- trunk/reactos/drivers/network/tcpip/tcpip/dispatch.c [iso-8859-1] (original) +++ trunk/reactos/drivers/network/tcpip/tcpip/dispatch.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -731,7 +731,7 @@ case TDI_QUERY_CONNECTION_INFO: { PTDI_CONNECTION_INFO ConnectionInfo; - PCONNECTION_ENDPOINT Endpoint; + //PCONNECTION_ENDPOINT Endpoint;
if (MmGetMdlByteCount(Irp->MdlAddress) < sizeof(*ConnectionInfo)) { TI_DbgPrint(MID_TRACE, ("MDL buffer too small.\n")); @@ -743,8 +743,7 @@
switch ((ULONG_PTR)IrpSp->FileObject->FsContext2) { case TDI_CONNECTION_FILE: - Endpoint = - (PCONNECTION_ENDPOINT)TranContext->Handle.ConnectionContext; + //Endpoint = (PCONNECTION_ENDPOINT)TranContext->Handle.ConnectionContext; RtlZeroMemory(ConnectionInfo, sizeof(*ConnectionInfo)); return STATUS_SUCCESS;
Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/pin_wavecyclic.cpp URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/p... ============================================================================== --- trunk/reactos/drivers/wdm/audio/backpln/portcls/pin_wavecyclic.cpp [iso-8859-1] (original) +++ trunk/reactos/drivers/wdm/audio/backpln/portcls/pin_wavecyclic.cpp [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -818,14 +818,13 @@ CPortPinWaveCyclic::RequestService() { ULONG Position; - NTSTATUS Status; ULONGLONG OldOffset, NewOffset;
PC_ASSERT_IRQL(DISPATCH_LEVEL);
if (m_State == KSSTATE_RUN && m_ResetState == KSRESET_END) { - Status = m_Stream->GetPosition(&Position); + m_Stream->GetPosition(&Position);
OldOffset = m_Position.PlayOffset;
@@ -1161,7 +1160,7 @@ { NTSTATUS Status; PKSDATAFORMAT DataFormat; - PDEVICE_OBJECT DeviceObject; + //PDEVICE_OBJECT DeviceObject; BOOLEAN Capture; PSUBDEVICE_DESCRIPTOR SubDeviceDescriptor = NULL; //IDrmAudioStream * DrmAudio = NULL; @@ -1170,7 +1169,7 @@ m_ConnectDetails = ConnectDetails; m_Miniport = GetWaveCyclicMiniport(Port);
- DeviceObject = GetDeviceObject(Port); + //DeviceObject = GetDeviceObject(Port);
DataFormat = (PKSDATAFORMAT)(ConnectDetails + 1);
Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/pin_wavepci.cpp URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/p... ============================================================================== --- trunk/reactos/drivers/wdm/audio/backpln/portcls/pin_wavepci.cpp [iso-8859-1] (original) +++ trunk/reactos/drivers/wdm/audio/backpln/portcls/pin_wavepci.cpp [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -496,7 +496,7 @@ CPortPinWavePci::HandleKsProperty( IN PIRP Irp) { - PKSPROPERTY Property; + //PKSPROPERTY Property; NTSTATUS Status; //UNICODE_STRING GuidString; PIO_STACK_LOCATION IoStack; @@ -521,7 +521,7 @@
if (Status == STATUS_NOT_FOUND) { - Property = (PKSPROPERTY)IoStack->Parameters.DeviceIoControl.Type3InputBuffer; + //Property = (PKSPROPERTY)IoStack->Parameters.DeviceIoControl.Type3InputBuffer; #if 0 RtlStringFromGUID(Property->Set, &GuidString); //DPRINT("Unhandeled property Set |%S| Id %u Flags %x\n", GuidString.Buffer, Property->Id, Property->Flags);
Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/propertyhandler.cpp URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/p... ============================================================================== --- trunk/reactos/drivers/wdm/audio/backpln/portcls/propertyhandler.cpp [iso-8859-1] (original) +++ trunk/reactos/drivers/wdm/audio/backpln/portcls/propertyhandler.cpp [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -152,7 +152,7 @@ { PKSP_PIN Pin; PLIST_ENTRY Entry; - PKSPIN_PHYSICALCONNECTION Connection; + //PKSPIN_PHYSICALCONNECTION Connection; PPHYSICAL_CONNECTION_ENTRY ConEntry;
// get pin @@ -180,7 +180,7 @@
if (ConEntry->FromPin == Pin->PinId) { - Connection = (PKSPIN_PHYSICALCONNECTION)Data; + //Connection = (PKSPIN_PHYSICALCONNECTION)Data; DPRINT("FoundEntry %S Size %u\n", ConEntry->Connection.SymbolicLinkName, ConEntry->Connection.Size); IoStatus->Information = ConEntry->Connection.Size;
Modified: trunk/reactos/drivers/wdm/audio/legacy/wdmaud/control.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/legacy/wd... ============================================================================== --- trunk/reactos/drivers/wdm/audio/legacy/wdmaud/control.c [iso-8859-1] (original) +++ trunk/reactos/drivers/wdm/audio/legacy/wdmaud/control.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -45,9 +45,9 @@ { ULONG Result = 0; NTSTATUS Status = STATUS_SUCCESS; - PWDMAUD_DEVICE_EXTENSION DeviceExtension; - - DeviceExtension = (PWDMAUD_DEVICE_EXTENSION)DeviceObject->DeviceExtension; + //PWDMAUD_DEVICE_EXTENSION DeviceExtension; + + //DeviceExtension = (PWDMAUD_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
if (DeviceInfo->DeviceType == MIXER_DEVICE_TYPE) { @@ -227,13 +227,13 @@ IN PIRP Irp, IN PWDMAUD_DEVICE_INFO DeviceInfo) { - PWDMAUD_DEVICE_EXTENSION DeviceExtension; + //PWDMAUD_DEVICE_EXTENSION DeviceExtension; NTSTATUS Status; LPWSTR Device; ULONG Size, Length;
/* get device extension */ - DeviceExtension = (PWDMAUD_DEVICE_EXTENSION)DeviceObject->DeviceExtension; + //DeviceExtension = (PWDMAUD_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
/* get device interface string input length */ Size = DeviceInfo->u.Interface.DeviceInterfaceStringSize;
Modified: trunk/reactos/drivers/wdm/audio/legacy/wdmaud/entry.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/legacy/wd... ============================================================================== --- trunk/reactos/drivers/wdm/audio/legacy/wdmaud/entry.c [iso-8859-1] (original) +++ trunk/reactos/drivers/wdm/audio/legacy/wdmaud/entry.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -126,10 +126,10 @@ NTSTATUS Status; PIO_STACK_LOCATION IoStack; PWDMAUD_CLIENT pClient; - PWDMAUD_DEVICE_EXTENSION DeviceExtension; + //PWDMAUD_DEVICE_EXTENSION DeviceExtension;
/* get device extension */ - DeviceExtension = (PWDMAUD_DEVICE_EXTENSION)DeviceObject->DeviceExtension; + //DeviceExtension = (PWDMAUD_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
#if KS_IMPLEMENTED Status = KsReferenceSoftwareBusObject((KSDEVICE_HEADER)DeviceObject->DeviceExtension);
Modified: trunk/reactos/drivers/wdm/audio/legacy/wdmaud/mmixer.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/legacy/wd... ============================================================================== --- trunk/reactos/drivers/wdm/audio/legacy/wdmaud/mmixer.c [iso-8859-1] (original) +++ trunk/reactos/drivers/wdm/audio/legacy/wdmaud/mmixer.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -406,13 +406,13 @@ { HANDLE hMixer; PWDMAUD_HANDLE Handles; - PWDMAUD_DEVICE_EXTENSION DeviceExtension; + //PWDMAUD_DEVICE_EXTENSION DeviceExtension; NTSTATUS Status; PKEVENT EventObject = NULL;
DPRINT("WdmAudControlOpenMixer\n");
- DeviceExtension = (PWDMAUD_DEVICE_EXTENSION)DeviceObject->DeviceExtension; + //DeviceExtension = (PWDMAUD_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
if (DeviceInfo->u.hNotifyEvent) {
Modified: trunk/reactos/lib/3rdparty/fullfat/CMakeLists.txt URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/3rdparty/fullfat/CMakeL... ============================================================================== --- trunk/reactos/lib/3rdparty/fullfat/CMakeLists.txt [iso-8859-1] (original) +++ trunk/reactos/lib/3rdparty/fullfat/CMakeLists.txt [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -18,5 +18,5 @@ ff_time.c)
add_library(fullfat ${SOURCE}) - +allow_warnings(fullfat) add_dependencies(fullfat bugcodes)
Modified: trunk/reactos/ntoskrnl/config/cmsysini.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/cmsysini.c?... ============================================================================== --- trunk/reactos/ntoskrnl/config/cmsysini.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/config/cmsysini.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -1078,7 +1078,8 @@ { WCHAR FileBuffer[MAX_PATH], RegBuffer[MAX_PATH], ConfigPath[MAX_PATH]; UNICODE_STRING TempName, FileName, RegName; - ULONG FileStart, RegStart, i, ErrorResponse, WorkerCount, Length; + ULONG FileStart, i, ErrorResponse, WorkerCount, Length; + //ULONG RegStart; ULONG PrimaryDisposition, SecondaryDisposition, ClusterSize; PCMHIVE CmHive; HANDLE PrimaryHandle, LogHandle; @@ -1106,7 +1107,7 @@ /* And build the registry root path */ RtlInitUnicodeString(&TempName, L"\REGISTRY\"); RtlAppendStringToString((PSTRING)&RegName, (PSTRING)&TempName); - RegStart = RegName.Length; + //RegStart = RegName.Length;
/* Build the base name */ RtlInitUnicodeString(&TempName, CmpMachineHiveList[i].BaseName);
Modified: trunk/reactos/ntoskrnl/ex/hdlsterm.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ex/hdlsterm.c?rev=... ============================================================================== --- trunk/reactos/ntoskrnl/ex/hdlsterm.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/ex/hdlsterm.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -205,7 +205,7 @@ OUT PSIZE_T OutputBufferSize ) { - NTSTATUS Status = STATUS_NOT_IMPLEMENTED; + //NTSTATUS Status = STATUS_NOT_IMPLEMENTED; ASSERT(HeadlessGlobals != NULL); // ASSERT(HeadlessGlobals->PageLockHandle != NULL);
@@ -236,7 +236,7 @@ /* Validate the existence of an input buffer */ if (!InputBuffer) { - Status = STATUS_INVALID_PARAMETER; + //Status = STATUS_INVALID_PARAMETER; goto Reset; }
@@ -249,7 +249,7 @@ }
/* Return success either way */ - Status = STATUS_SUCCESS; + //Status = STATUS_SUCCESS; break; case HeadlessCmdClearDisplay: break;
Modified: trunk/reactos/ntoskrnl/io/iomgr/volume.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/volume.c?... ============================================================================== --- trunk/reactos/ntoskrnl/io/iomgr/volume.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/io/iomgr/volume.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -881,7 +881,7 @@ NTSTATUS Status, VpbStatus; PDEVICE_OBJECT FileSystemDeviceObject; PVPB Vpb, NewVpb; - BOOLEAN WasNotMounted = TRUE; + //BOOLEAN WasNotMounted = TRUE;
/* Wait on the device lock */ Status = KeWaitForSingleObject(&DeviceObject->DeviceLock, @@ -898,7 +898,7 @@ KeInitializeEvent(&Event, NotificationEvent, FALSE);
/* Find the actual File System DO */ - WasNotMounted = FALSE; + //WasNotMounted = FALSE; FileSystemDeviceObject = DeviceObject->Vpb->DeviceObject; while (FileSystemDeviceObject->AttachedDevice) {
Modified: trunk/reactos/ntoskrnl/mm/ARM3/virtual.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/virtual.c?... ============================================================================== --- trunk/reactos/ntoskrnl/mm/ARM3/virtual.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/mm/ARM3/virtual.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -116,7 +116,8 @@ { PFN_NUMBER ActualPages = 0; PETHREAD CurrentThread = PsGetCurrentThread(); - PMMPFN Pfn1, Pfn2; + PMMPFN Pfn1; + //PMMPFN Pfn2; PFN_NUMBER PageFrameIndex, PageTableIndex; KIRQL OldIrql; ASSERT(KeGetCurrentIrql() <= APC_LEVEL); @@ -149,7 +150,7 @@
/* Get the page table entry */ PageTableIndex = Pfn1->u4.PteFrame; - Pfn2 = MiGetPfnEntry(PageTableIndex); + //Pfn2 = MiGetPfnEntry(PageTableIndex);
/* Lock the PFN database */ OldIrql = KeAcquireQueuedSpinLock(LockQueuePfnLock);
Modified: trunk/reactos/ntoskrnl/mm/ARM3/zeropage.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/zeropage.c... ============================================================================== --- trunk/reactos/ntoskrnl/mm/ARM3/zeropage.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/mm/ARM3/zeropage.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -29,7 +29,6 @@ PKTHREAD Thread = KeGetCurrentThread(); //PVOID StartAddress, EndAddress; PVOID WaitObjects[2]; - NTSTATUS Status; KIRQL OldIrql; PVOID ZeroAddress; PFN_NUMBER PageIndex, FreePage; @@ -50,14 +49,14 @@
while (TRUE) { - Status = KeWaitForMultipleObjects(1, // 2 - WaitObjects, - WaitAny, - WrFreePage, - KernelMode, - FALSE, - NULL, - NULL); + KeWaitForMultipleObjects(1, // 2 + WaitObjects, + WaitAny, + WrFreePage, + KernelMode, + FALSE, + NULL, + NULL); OldIrql = KeAcquireQueuedSpinLock(LockQueuePfnLock); while (TRUE) {
Modified: trunk/reactos/subsystems/win32/csrss/csrsrv/api/process.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/csrss/csrs... ============================================================================== --- trunk/reactos/subsystems/win32/csrss/csrsrv/api/process.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/csrss/csrsrv/api/process.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -207,7 +207,6 @@ CSR_API(CsrCreateProcess) { PCSRSS_PROCESS_DATA NewProcessData; - NTSTATUS Status;
Request->Header.u1.s1.DataLength = sizeof(CSR_API_MESSAGE) - sizeof(PORT_MESSAGE); Request->Header.u1.s1.TotalLength = sizeof(CSR_API_MESSAGE); @@ -224,7 +223,7 @@ NewProcessData->bInheritHandles = Request->Data.CreateProcessRequest.bInheritHandles; if (Request->Data.CreateProcessRequest.bInheritHandles) { - Status = CallProcessInherit(ProcessData, NewProcessData); + CallProcessInherit(ProcessData, NewProcessData); } }
Modified: trunk/reactos/subsystems/win32/csrss/csrsrv/thredsup.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/csrss/csrs... ============================================================================== --- trunk/reactos/subsystems/win32/csrss/csrsrv/thredsup.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/csrss/csrsrv/thredsup.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -214,17 +214,16 @@ IN HANDLE hThread, IN PCLIENT_ID ClientId) { - NTSTATUS Status; PCSR_THREAD CsrThread; //PCSRSS_PROCESS_DATA CurrentProcess; - PCSR_THREAD CurrentThread = NtCurrentTeb()->CsrClientThread; - CLIENT_ID CurrentCid; + //PCSR_THREAD CurrentThread = NtCurrentTeb()->CsrClientThread; + //CLIENT_ID CurrentCid; KERNEL_USER_TIMES KernelTimes;
// DPRINT1("CSRSRV: %s called\n", __FUNCTION__);
/* Get the current thread and CID */ - CurrentCid = CurrentThread->ClientId; + //CurrentCid = CurrentThread->ClientId; // DPRINT1("CALLER PID/TID: %lx/%lx\n", CurrentCid.UniqueProcess, CurrentCid.UniqueThread);
/* Acquire the Process Lock */ @@ -243,11 +242,11 @@ } #endif /* Get the Thread Create Time */ - Status = NtQueryInformationThread(hThread, - ThreadTimes, - (PVOID)&KernelTimes, - sizeof(KernelTimes), - NULL); + NtQueryInformationThread(hThread, + ThreadTimes, + (PVOID)&KernelTimes, + sizeof(KernelTimes), + NULL);
/* Allocate a CSR Thread Structure */ if (!(CsrThread = CsrAllocateThread(CsrProcess)))
Modified: trunk/reactos/subsystems/win32/csrss/win32csr/alias.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/csrss/win3... ============================================================================== --- trunk/reactos/subsystems/win32/csrss/win32csr/alias.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/csrss/win32csr/alias.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -285,11 +285,11 @@ WCHAR * lpExeName; WCHAR * lpSource; WCHAR * lpTarget; - ULONG TotalLength; - WCHAR * Ptr; - - TotalLength = Request->Data.AddConsoleAlias.SourceLength + Request->Data.AddConsoleAlias.ExeLength + Request->Data.AddConsoleAlias.TargetLength; - Ptr = (WCHAR*)((ULONG_PTR)Request + sizeof(CSR_API_MESSAGE)); + //ULONG TotalLength; + //WCHAR * Ptr; + + //TotalLength = Request->Data.AddConsoleAlias.SourceLength + Request->Data.AddConsoleAlias.ExeLength + Request->Data.AddConsoleAlias.TargetLength; + //Ptr = (WCHAR*)((ULONG_PTR)Request + sizeof(CSR_API_MESSAGE));
lpSource = (WCHAR*)((ULONG_PTR)Request + sizeof(CSR_API_MESSAGE)); lpExeName = (WCHAR*)((ULONG_PTR)Request + sizeof(CSR_API_MESSAGE) + Request->Data.AddConsoleAlias.SourceLength * sizeof(WCHAR));
Modified: trunk/reactos/subsystems/win32/csrss/win32csr/dllmain.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/csrss/win3... ============================================================================== --- trunk/reactos/subsystems/win32/csrss/win32csr/dllmain.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/csrss/win32csr/dllmain.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -184,11 +184,10 @@ PCSRSS_EXPORTED_FUNCS Exports, HANDLE CsrssApiHeap) { - NTSTATUS Status; CsrExports = *Exports; Win32CsrApiHeap = CsrssApiHeap;
- Status = NtUserInitialize(0, NULL, NULL); + NtUserInitialize(0, NULL, NULL);
PrivateCsrssManualGuiCheck(0); CsrInitConsoleSupport(); @@ -199,7 +198,7 @@ ServerProcs->ProcessInheritProc = Win32CsrDuplicateHandleTable; ServerProcs->ProcessDeletedProc = Win32CsrReleaseConsole;
- Status = RtlInitializeCriticalSection(&Win32CsrDefineDosDeviceCritSec); + RtlInitializeCriticalSection(&Win32CsrDefineDosDeviceCritSec); InitializeListHead(&DosDeviceHistory); return TRUE; }
Modified: trunk/reactos/subsystems/win32/win32k/dib/dib24bpp.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/dib... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/dib/dib24bpp.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/dib/dib24bpp.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -468,7 +468,8 @@ register PUCHAR Dst; BLENDFUNCTION BlendFunc; register NICEPIXEL32 DstPixel, SrcPixel; - UCHAR Alpha, SrcBpp; + UCHAR Alpha; + //UCHAR SrcBpp;
DPRINT("DIB_24BPP_AlphaBlend: srcRect: (%d,%d)-(%d,%d), dstRect: (%d,%d)-(%d,%d)\n", SourceRect->left, SourceRect->top, SourceRect->right, SourceRect->bottom, @@ -499,7 +500,7 @@
Dst = (PUCHAR)((ULONG_PTR)Dest->pvScan0 + (DestRect->top * Dest->lDelta) + (DestRect->left * 3)); - SrcBpp = BitsPerFormat(Source->iBitmapFormat); + //SrcBpp = BitsPerFormat(Source->iBitmapFormat);
Rows = 0; SrcY = SourceRect->top;
Modified: trunk/reactos/subsystems/win32/win32k/eng/alphablend.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/eng... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/eng/alphablend.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/eng/alphablend.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -201,13 +201,13 @@ { BOOL ret = FALSE; SURFACE *psurfDest; - SURFACE *psurfSource; + //SURFACE *psurfSource;
ASSERT(psoDest); psurfDest = CONTAINING_RECORD(psoDest, SURFACE, SurfObj);
ASSERT(psoSource); - psurfSource = CONTAINING_RECORD(psoSource, SURFACE, SurfObj); + //psurfSource = CONTAINING_RECORD(psoSource, SURFACE, SurfObj);
ASSERT(DestRect); ASSERT(SourceRect);
Modified: trunk/reactos/subsystems/win32/win32k/eng/bitblt.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/eng... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/eng/bitblt.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/eng/bitblt.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -958,7 +958,7 @@ BOOLEAN ret; RECTL OutputRect; POINTL InputPoint; - SURFACE *psurfDest; + //SURFACE *psurfDest;
ASSERT(psoMask);
@@ -986,7 +986,7 @@ /* No success yet */ ret = FALSE; ASSERT(psoDest); - psurfDest = CONTAINING_RECORD(psoDest, SURFACE, SurfObj); + //psurfDest = CONTAINING_RECORD(psoDest, SURFACE, SurfObj);
/* Dummy BitBlt to let driver know that it should flush its changes. This should really be done using a call to DrvSynchronizeSurface,
Modified: trunk/reactos/subsystems/win32/win32k/eng/stretchblt.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/eng... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/eng/stretchblt.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/eng/stretchblt.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -392,7 +392,7 @@ COLORADJUSTMENT ca; POINTL MaskOrigin = {0, 0}; SURFACE *psurfDest; - SURFACE *psurfSource = NULL; + //SURFACE *psurfSource = NULL; RECTL InputClippedRect; RECTL InputRect; RECTL OutputRect; @@ -469,7 +469,7 @@
if (UsesSource) { - psurfSource = CONTAINING_RECORD(psoSource, SURFACE, SurfObj); + //psurfSource = CONTAINING_RECORD(psoSource, SURFACE, SurfObj); }
/* Prepare color adjustment */
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/display.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntu... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/display.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/display.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -648,7 +648,7 @@ HKEY hkey; NTSTATUS Status; PPDEVOBJ ppdev; - PDESKTOP pdesk; + //PDESKTOP pdesk;
/* If no DEVMODE is given, use registry settings */ if (!pdm) @@ -769,7 +769,7 @@ /* Remove all cursor clipping */ UserClipCursor(NULL);
- pdesk = IntGetActiveDesktop(); + //pdesk = IntGetActiveDesktop(); //IntHideDesktop(pdesk);
/* Send WM_DISPLAYCHANGE to all toplevel windows */
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/input.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntu... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/input.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/input.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -1741,7 +1741,7 @@ DWORD resolution) { MOUSEMOVEPOINT Safeppt; - BOOL Hit; + //BOOL Hit; INT Count = -1; DECLARE_RETURN(DWORD);
@@ -1775,7 +1775,7 @@ // http://msdn.microsoft.com/en-us/library/ms646259(v=vs.85).aspx // This explains the math issues in transforming points. Count = gcur_count; // FIFO is forward so retrieve backward. - Hit = FALSE; + //Hit = FALSE; do { if (Safeppt.x == 0 && Safeppt.y == 0) @@ -1787,7 +1787,7 @@ { if (Safeppt.time == MouseHistoryOfMoves[Count].time) { - Hit = TRUE; + //Hit = TRUE; break; } else @@ -1796,7 +1796,7 @@ continue; } } - Hit = TRUE; + //Hit = TRUE; break; } if (--Count < 0) Count = 63;
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/message.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntu... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/message.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/message.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -684,7 +684,7 @@ BOOL bGMSG ) { PTHREADINFO pti; - PCLIENTINFO pci; + //PCLIENTINFO pci; LARGE_INTEGER LargeTickCount; PUSER_MESSAGE_QUEUE ThreadQueue; BOOL RemoveMessages; @@ -693,7 +693,7 @@
pti = PsGetCurrentThreadWin32Thread(); ThreadQueue = pti->MessageQueue; - pci = pti->pClientInfo; + //pci = pti->pClientInfo;
RemoveMessages = RemoveMsg & PM_REMOVE; ProcessMask = HIWORD(RemoveMsg); @@ -1557,7 +1557,7 @@ LPARAM lParam, PDOSENDMESSAGE dsm) { - PTHREADINFO pti; + //PTHREADINFO pti; LRESULT Result = TRUE; NTSTATUS Status; PWND Window = NULL; @@ -1581,7 +1581,7 @@ }
/* See if the current thread can handle the message */ - pti = PsGetCurrentThreadWin32Thread(); + //pti = PsGetCurrentThreadWin32Thread();
UserModeMsg.hwnd = hWnd; UserModeMsg.message = Msg; @@ -1677,11 +1677,11 @@ IntGetQueueStatus(DWORD Changes) { PTHREADINFO pti; - PUSER_MESSAGE_QUEUE Queue; + //PUSER_MESSAGE_QUEUE Queue; DWORD Result;
pti = PsGetCurrentThreadWin32Thread(); - Queue = pti->MessageQueue; + //Queue = pti->MessageQueue; // wine: Changes &= (QS_ALLINPUT|QS_ALLPOSTMESSAGE|QS_SMRESULT);
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/window.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntu... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -3846,7 +3846,7 @@
if ((DesktopWindow = UserGetWindowObject(IntGetDesktopWindow()))) { - PTHREADINFO pti; + //PTHREADINFO pti;
pt.x = X; pt.y = Y; @@ -3855,7 +3855,7 @@ //its possible this referencing is useless, thou it shouldnt hurt... UserRefObjectCo(DesktopWindow, &Ref);
- pti = PsGetCurrentThreadWin32Thread(); + //pti = PsGetCurrentThreadWin32Thread(); Window = co_WinPosWindowFromPoint(DesktopWindow, &pt, &hittest);
if(Window)
Modified: trunk/reactos/subsystems/win32/win32k/objects/arc.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/obj... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/objects/arc.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/objects/arc.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -196,7 +196,7 @@ int YEndArc) { BOOL Ret; - PDC_ATTR pdcattr; + //PDC_ATTR pdcattr;
DPRINT("StartX: %d, StartY: %d, EndX: %d, EndY: %d\n", XStartArc,YStartArc,XEndArc,YEndArc); @@ -219,7 +219,7 @@ arctype); }
- pdcattr = dc->pdcattr; + //pdcattr = dc->pdcattr;
if (arctype == GdiTypeArcTo) {
Modified: trunk/reactos/subsystems/win32/win32k/objects/cliprgn.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/obj... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/objects/cliprgn.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/objects/cliprgn.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -26,14 +26,14 @@ CLIPPING_UpdateGCRegion(DC* Dc) { PROSRGNDATA CombinedRegion; - HRGN hRgnVis; + //HRGN hRgnVis; PREGION prgnClip, prgnGCClip;
// would prefer this, but the rest of the code sucks // ASSERT(Dc->rosdc.hGCClipRgn); // ASSERT(Dc->rosdc.hClipRgn); ASSERT(Dc->prgnVis); - hRgnVis = Dc->prgnVis->BaseObject.hHmgr; + //hRgnVis = Dc->prgnVis->BaseObject.hHmgr;
if (Dc->rosdc.hGCClipRgn == NULL) Dc->rosdc.hGCClipRgn = IntSysCreateRectRgn(0, 0, 0, 0);
Modified: trunk/reactos/subsystems/win32/win32k/objects/dibobj.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/obj... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/objects/dibobj.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/objects/dibobj.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -350,7 +350,7 @@ SURFACE *pSurf; RECTL rcDest; POINTL ptSource; - INT DIBWidth; + //INT DIBWidth; SIZEL SourceSize; EXLATEOBJ exlo; PPALETTE ppalDIB = NULL; @@ -410,7 +410,7 @@ SourceSize.cx = bmi->bmiHeader.biWidth; SourceSize.cy = ScanLines;
- DIBWidth = WIDTH_BYTES_ALIGN32(SourceSize.cx, bmi->bmiHeader.biBitCount); + //DIBWidth = WIDTH_BYTES_ALIGN32(SourceSize.cx, bmi->bmiHeader.biBitCount);
hSourceBitmap = GreCreateBitmapEx(bmi->bmiHeader.biWidth, ScanLines, @@ -1390,7 +1390,7 @@ INT effHeight; ULONG totalSize; BITMAP bm; - SIZEL Size; + //SIZEL Size; HANDLE hSecure;
DPRINT("format (%ld,%ld), planes %d, bpp %d, size %ld, colors %ld (%s)\n", @@ -1507,8 +1507,8 @@ }
// Create Device Dependent Bitmap and add DIB pointer - Size.cx = bm.bmWidth; - Size.cy = abs(bm.bmHeight); + //Size.cx = bm.bmWidth; + //Size.cy = abs(bm.bmHeight); res = GreCreateBitmapEx(bm.bmWidth, abs(bm.bmHeight), bm.bmWidthBytes,
Modified: trunk/reactos/subsystems/win32/win32k/objects/gdibatch.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/obj... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/objects/gdibatch.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/objects/gdibatch.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -43,14 +43,14 @@ SynchonizeDriver(FLONG Flags) { SURFOBJ *SurfObj; - PPDEVOBJ Device; + //PPDEVOBJ Device;
if (Flags & GCAPS2_SYNCFLUSH) Flags = DSS_FLUSH_EVENT; if (Flags & GCAPS2_SYNCTIMER) Flags = DSS_TIMER_EVENT;
- Device = IntEnumHDev(); + //Device = IntEnumHDev(); // UNIMPLEMENTED; //ASSERT(FALSE); SurfObj = 0;// EngLockSurface( Device->pSurface );
Modified: trunk/reactos/subsystems/win32/win32k/objects/gdipool.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/obj... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/objects/gdipool.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/objects/gdipool.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -127,7 +127,6 @@ PLIST_ENTRY ple; PVOID pvAlloc, pvBaseAddress; SIZE_T cjSize; - NTSTATUS status;
/* Disable APCs and acquire the pool lock */ KeEnterCriticalRegion(); @@ -192,12 +191,12 @@ /* Commit the pages */ pvBaseAddress = PAGE_ALIGN(pvAlloc); cjSize = ADDRESS_AND_SIZE_TO_SPAN_PAGES(pvAlloc, pPool->cjAllocSize) * PAGE_SIZE; - status = ZwAllocateVirtualMemory(NtCurrentProcess(), - &pvBaseAddress, - 0, - &cjSize, - MEM_COMMIT, - PAGE_READWRITE); + ZwAllocateVirtualMemory(NtCurrentProcess(), + &pvBaseAddress, + 0, + &cjSize, + MEM_COMMIT, + PAGE_READWRITE);
pSection->ulCommitBitmap |= ulPageBit; }
Modified: trunk/reactos/subsystems/win32/win32k/objects/region.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/obj... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/objects/region.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/objects/region.c [iso-8859-1] Sun Sep 11 16:56:56 2011 @@ -2029,7 +2029,7 @@ FASTCALL REGION_AllocRgnWithHandle(INT nReg) { - HRGN hReg; + //HRGN hReg; PROSRGNDATA pReg;
pReg = (PROSRGNDATA)GDIOBJ_AllocateObject(GDIObjType_RGN_TYPE, @@ -2048,7 +2048,7 @@ return NULL; }
- hReg = pReg->BaseObject.hHmgr; + //hReg = pReg->BaseObject.hHmgr;
if (nReg == 0 || nReg == 1) {