* Fix some more unused but set variables.
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 10 Sep 2011 23:54:02 +0000 (23:54 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 10 Sep 2011 23:54:02 +0000 (23:54 +0000)
* Allow warnings for some 3rd party code.

svn path=/trunk/; revision=53680

27 files changed:
reactos/base/system/smss/smapi.c
reactos/dll/cpl/desk/draw.c
reactos/dll/directx/dmusic/port.c
reactos/dll/directx/ksproxy/ksproxy.cpp
reactos/dll/win32/devmgr/advprop.c
reactos/dll/win32/dhcpcsvc/dhcp/pipe.c
reactos/dll/win32/glu32/CMakeLists.txt
reactos/dll/win32/msafd/misc/dllmain.c
reactos/dll/win32/msafd/misc/helpers.c
reactos/dll/win32/msafd/misc/sndrcv.c
reactos/dll/win32/netcfgx/netcfg_iface.c
reactos/dll/win32/netcfgx/tcpipconf_notify.c
reactos/dll/win32/spoolss/CMakeLists.txt
reactos/dll/win32/ws2_32_new/src/async.c
reactos/dll/win32/ws2_32_new/src/enumprot.c
reactos/dll/win32/ws2_32_new/src/nscatent.c
reactos/dll/win32/ws2_32_new/src/nsprovid.c
reactos/drivers/wdm/audio/filters/kmixer/filter.c
reactos/drivers/wdm/audio/sysaudio/control.c
reactos/drivers/wdm/audio/sysaudio/deviface.c
reactos/lib/drivers/ip/network/icmp.c
reactos/lib/drivers/ip/network/router.c
reactos/lib/drivers/ip/transport/tcp/tcp.c
reactos/lib/drivers/sound/mmixer/midi.c
reactos/lib/drivers/sound/mmixer/topology.c
reactos/lib/fslib/vfatlib/fat32.c
reactos/lib/fslib/vfatlib/vfatlib.c

index 37abfc5..669c8ed 100644 (file)
@@ -189,8 +189,6 @@ SmpHandleConnectionRequest (PSM_PORT_MESSAGE Request)
     PSM_CLIENT_DATA  ClientData = NULL;
     HANDLE           hClientDataApiPort = (HANDLE) 0;
     PHANDLE          ClientDataApiPort = & hClientDataApiPort;
-    HANDLE           hClientDataApiPortThread = (HANDLE) 0;
-    PHANDLE          ClientDataApiPortThread = & hClientDataApiPortThread;
     PVOID            Context = NULL;
 
     DPRINT("SM: %s called:\n  SubSystemID=%d\n  SbName=\"%S\"\n",
@@ -207,7 +205,6 @@ SmpHandleConnectionRequest (PSM_PORT_MESSAGE Request)
              */
             DPRINT("SM: %s: simple request\n", __FUNCTION__);
             ClientDataApiPort = & hClientDataApiPort;
-            ClientDataApiPortThread = & hClientDataApiPortThread;
             Accept = TRUE;
         } else {
             DPRINT("SM: %s: request to register an image set\n", __FUNCTION__);
@@ -232,7 +229,6 @@ SmpHandleConnectionRequest (PSM_PORT_MESSAGE Request)
                      * willing to manage a free image type.
                      */
                     ClientDataApiPort = & ClientData->ApiPort;
-                    ClientDataApiPortThread = & ClientData->ApiPortThread;
                     /*
                      * Call back the candidate environment subsystem
                      * server (use the port name sent in in the
index 3a4b8c2..8a6bf5d 100644 (file)
@@ -437,15 +437,10 @@ MyDrawScrollbar(HDC hdc, LPRECT rc, HBRUSH hbrScrollbar, THEME *theme)
 BOOL
 MyDrawCaptionTemp(HWND hwnd, HDC hdc, const RECT *rect, HFONT hFont, HICON hIcon, LPCWSTR str, UINT uFlags, THEME *theme)
 {
-       ULONG Height;
-       UINT VCenter;
        HBRUSH hbr;
        HGDIOBJ hFontOld;
     RECT rc;
 
-       Height = theme->Size[SIZE_CAPTION_Y] - 1;
-       VCenter = (rect->bottom - rect->top) / 2;
-
        if (uFlags & DC_GRADIENT)
        {
                GRADIENT_RECT gcap = {0, 1};
index 5c4e848..c6281a4 100644 (file)
@@ -362,7 +362,6 @@ static const IDirectMusicThruVtbl DirectMusicThru_Vtbl = {
 
 HRESULT WINAPI DMUSIC_CreateDirectMusicPortImpl (LPCGUID lpcGUID, LPVOID *ppobj, LPUNKNOWN pUnkOuter, LPDMUS_PORTPARAMS pPortParams, LPDMUS_PORTCAPS pPortCaps) {
        IDirectMusicPortImpl *obj;
-       HRESULT hr = E_FAIL;
 
        TRACE("(%p,%p,%p)\n", lpcGUID, ppobj, pUnkOuter);
 
@@ -380,7 +379,7 @@ HRESULT WINAPI DMUSIC_CreateDirectMusicPortImpl (LPCGUID lpcGUID, LPVOID *ppobj,
        obj->caps = *pPortCaps;
        obj->pDirectSound = NULL;
        obj->pLatencyClock = NULL;
-       hr = DMUSIC_CreateReferenceClockImpl(&IID_IReferenceClock, (LPVOID*)&obj->pLatencyClock, NULL);
+       DMUSIC_CreateReferenceClockImpl(&IID_IReferenceClock, (LPVOID*)&obj->pLatencyClock, NULL);
 
 #if 0
        if (pPortParams->dwValidParams & DMUS_PORTPARAMS_CHANNELGROUPS) {
index 7baa7e3..20c2177 100644 (file)
@@ -111,7 +111,6 @@ KsOpenDefaultDevice(
     PHANDLE      DeviceHandle)
 {
     HDEVINFO hList;
-    SP_DEVINFO_DATA DeviceInfoData;
     SP_DEVICE_INTERFACE_DATA DeviceInterfaceData;
     PSP_DEVICE_INTERFACE_DETAIL_DATA_W DeviceInterfaceDetailData;
     WCHAR Path[MAX_PATH+sizeof(SP_DEVICE_INTERFACE_DETAIL_DATA_W)];
@@ -126,7 +125,6 @@ KsOpenDefaultDevice(
     }
 
     /* setup parameters */
-    DeviceInfoData.cbSize = sizeof(SP_DEVINFO_DATA);
     DeviceInterfaceData.cbSize = sizeof(SP_DEVICE_INTERFACE_DATA);
 
     if (SetupDiEnumDeviceInterfaces(hList, NULL, &Category, 0, &DeviceInterfaceData))
index 3fe16f2..4b802a4 100644 (file)
@@ -957,7 +957,6 @@ static VOID
 DisplayDevNodeEnumerator(IN PDEVADVPROP_INFO dap,
                          IN HWND hwndListView)
 {
-    HDEVINFO DeviceInfoSet;
     PSP_DEVINFO_DATA DeviceInfoData;
 
     DWORD dwType = 0;
@@ -966,12 +965,10 @@ DisplayDevNodeEnumerator(IN PDEVADVPROP_INFO dap,
 
     if (dap->CurrentDeviceInfoSet != INVALID_HANDLE_VALUE)
     {
-        DeviceInfoSet = dap->CurrentDeviceInfoSet;
         DeviceInfoData = &dap->CurrentDeviceInfoData;
     }
     else
     {
-        DeviceInfoSet = dap->DeviceInfoSet;
         DeviceInfoData = &dap->DeviceInfoData;
     }
 
index 9ea0402..d9ac7db 100644 (file)
@@ -31,7 +31,7 @@ DWORD PipeSend( COMM_DHCP_REPLY *Reply ) {
 }
 
 DWORD WINAPI PipeThreadProc( LPVOID Parameter ) {
-    DWORD BytesRead, BytesWritten;
+    DWORD BytesRead;
     COMM_DHCP_REQ Req;
     COMM_DHCP_REPLY Reply;
     BOOL Result, Connected;
@@ -51,34 +51,34 @@ DWORD WINAPI PipeThreadProc( LPVOID Parameter ) {
         if( Result ) {
             switch( Req.Type ) {
             case DhcpReqQueryHWInfo:
-                BytesWritten = DSQueryHWInfo( PipeSend, &Req );
+                DSQueryHWInfo( PipeSend, &Req );
                 break;
 
             case DhcpReqLeaseIpAddress:
-                BytesWritten = DSLeaseIpAddress( PipeSend, &Req );
+                DSLeaseIpAddress( PipeSend, &Req );
                 break;
 
             case DhcpReqReleaseIpAddress:
-                BytesWritten = DSReleaseIpAddressLease( PipeSend, &Req );
+                DSReleaseIpAddressLease( PipeSend, &Req );
                 break;
 
             case DhcpReqRenewIpAddress:
-                BytesWritten = DSRenewIpAddressLease( PipeSend, &Req );
+                DSRenewIpAddressLease( PipeSend, &Req );
                 break;
 
             case DhcpReqStaticRefreshParams:
-                BytesWritten = DSStaticRefreshParams( PipeSend, &Req );
+                DSStaticRefreshParams( PipeSend, &Req );
                 break;
 
             case DhcpReqGetAdapterInfo:
-                BytesWritten = DSGetAdapterInfo( PipeSend, &Req );
+                DSGetAdapterInfo( PipeSend, &Req );
                 break;
 
             default:
                 DPRINT1("Unrecognized request type %d\n", Req.Type);
                 ZeroMemory( &Reply, sizeof( COMM_DHCP_REPLY ) );
                 Reply.Reply = 0;
-                BytesWritten = PipeSend( &Reply );
+                PipeSend( &Reply );
                 break;
             }
         }
index 0a7077b..4454707 100644 (file)
@@ -107,7 +107,7 @@ list(APPEND SOURCE
     ${CMAKE_CURRENT_BINARY_DIR}/glu32.def)
 
 add_library(glu32 SHARED ${SOURCE})
-
+allow_warnings(glu32)
 set_module_type(glu32 win32dll ENTRYPOINT 0 )
 
 if(NOT MSVC)
index 9cd2d38..1963bc7 100644 (file)
@@ -2598,7 +2598,6 @@ BOOLEAN SockGetAsyncSelectHelperAfdHandle(VOID)
     UNICODE_STRING AfdHelper;
     OBJECT_ATTRIBUTES ObjectAttributes;
     IO_STATUS_BLOCK IoSb;
-    NTSTATUS Status;
     FILE_COMPLETION_INFORMATION CompletionInfo;
     OBJECT_HANDLE_ATTRIBUTE_INFORMATION HandleFlags;
 
@@ -2617,17 +2616,17 @@ BOOLEAN SockGetAsyncSelectHelperAfdHandle(VOID)
                          NULL);
 
     /* Open the Handle to AFD */
-    Status = NtCreateFile(&SockAsyncHelperAfdHandle,
-                          GENERIC_READ | GENERIC_WRITE | SYNCHRONIZE,
-                          &ObjectAttributes,
-                          &IoSb,
-                          NULL,
-                          0,
-                          FILE_SHARE_READ | FILE_SHARE_WRITE,
-                          FILE_OPEN_IF,
-                          0,
-                          NULL,
-                          0);
+    NtCreateFile(&SockAsyncHelperAfdHandle,
+                 GENERIC_READ | GENERIC_WRITE | SYNCHRONIZE,
+                 &ObjectAttributes,
+                 &IoSb,
+                 NULL,
+                 0,
+                 FILE_SHARE_READ | FILE_SHARE_WRITE,
+                 FILE_OPEN_IF,
+                 0,
+                 NULL,
+                 0);
 
     /* 
      * Now Set up the Completion Port Information 
@@ -2635,20 +2634,20 @@ BOOLEAN SockGetAsyncSelectHelperAfdHandle(VOID)
      */
     CompletionInfo.Port = SockAsyncCompletionPort;
     CompletionInfo.Key = SockAsyncSelectCompletionRoutine;
-    Status = NtSetInformationFile(SockAsyncHelperAfdHandle,
-                                  &IoSb,
-                                  &CompletionInfo,
-                                  sizeof(CompletionInfo),
-                                  FileCompletionInformation);
+    NtSetInformationFile(SockAsyncHelperAfdHandle,
+                         &IoSb,
+                         &CompletionInfo,
+                         sizeof(CompletionInfo),
+                         FileCompletionInformation);
 
 
     /* Protect the Handle */
     HandleFlags.ProtectFromClose = TRUE;
     HandleFlags.Inherit = FALSE;
-    Status = NtSetInformationObject(SockAsyncCompletionPort,
-                                    ObjectHandleFlagInformation,
-                                    &HandleFlags,
-                                    sizeof(HandleFlags));
+    NtSetInformationObject(SockAsyncCompletionPort,
+                           ObjectHandleFlagInformation,
+                           &HandleFlags,
+                           sizeof(HandleFlags));
 
 
     /* Set this variable to true so that Send/Recv/Accept will know wether to renable disabled events */
index 3ec0f97..7bc78e3 100644 (file)
@@ -296,10 +296,9 @@ SockLoadHelperDll(
     PWINSOCK_MAPPING Mapping, 
     PHELPER_DATA *HelperDllData)
 {
-    PHELPER_DATA       HelperData;
+    PHELPER_DATA        HelperData;
     PWSTR               HelperDllName;
     PWSTR               FullHelperDllName;
-    ULONG               HelperDllNameSize;
     PWSTR               HelperKey;
     HKEY                KeyHandle;
     ULONG               DataSize;
@@ -412,9 +411,9 @@ SockLoadHelperDll(
     }
 
     /* Get the Full name, expanding Environment Strings */
-    HelperDllNameSize = ExpandEnvironmentStringsW (HelperDllName,
-                                                   FullHelperDllName, 
-                                                   256);
+    ExpandEnvironmentStringsW (HelperDllName,
+                               FullHelperDllName, 
+                               256);
 
     /* Load the DLL */
     HelperData->hInstance = LoadLibraryW(FullHelperDllName);
index efea9af..589fefc 100644 (file)
@@ -22,7 +22,6 @@ WSPAsyncSelect(IN  SOCKET Handle,
 {
     PSOCKET_INFORMATION Socket = NULL;
     PASYNC_DATA                 AsyncData;
-    NTSTATUS                    Status;
     BOOLEAN                     BlockMode;
 
     /* Get the Socket Structure associated to this Socket */
@@ -81,11 +80,11 @@ WSPAsyncSelect(IN  SOCKET Handle,
     AsyncData->SequenceNumber = Socket->SharedData.SequenceNumber;
 
     /* Begin Async Select by using I/O Completion */
-    Status = NtSetIoCompletion(SockAsyncCompletionPort,
-                               (PVOID)&SockProcessQueuedAsyncSelect,
-                                AsyncData,
-                                0,
-                                0);
+    NtSetIoCompletion(SockAsyncCompletionPort,
+                      (PVOID)&SockProcessQueuedAsyncSelect,
+                      AsyncData,
+                      0,
+                      0);
 
     /* Return */
     return ERROR_SUCCESS;
index 7f566e4..c0f9647 100644 (file)
@@ -170,7 +170,6 @@ EnumClientServiceProtocol(HKEY hKey, const GUID * pGuid, NetCfgComponentItem **
     DWORD dwIndex = 0;
     DWORD dwSize;
     DWORD dwType;
-    DWORD dwCharacteristics;
     WCHAR szName[100];
     WCHAR szText[100];
     HKEY hSubKey, hNDIKey;
@@ -179,7 +178,6 @@ EnumClientServiceProtocol(HKEY hKey, const GUID * pGuid, NetCfgComponentItem **
     *pHead = NULL;
     do
     {
-        dwCharacteristics = 0;
         szText[0] = L'\0';
 
         dwSize = sizeof(szName)/sizeof(WCHAR);
index db8ec1b..a71d0de 100644 (file)
@@ -564,7 +564,6 @@ TcpipAdvancedOptDlg(
 {
     TcpipConfNotifyImpl * This;
     LPPROPSHEETPAGE page;
-    int res;
 
     switch(uMsg)
     {
@@ -576,11 +575,11 @@ TcpipAdvancedOptDlg(
         case WM_COMMAND:
             if (LOWORD(wParam) == IDC_OPTPROP)
             {
-                res = DialogBoxParamW(netcfgx_hInstance,
-                                      MAKEINTRESOURCEW(IDD_TCPIP_FILTER_DLG), 
-                                      GetParent(hwndDlg), 
-                                      TcpipFilterSettingsDlg,
-                                      (LPARAM)GetWindowLongPtr(hwndDlg, DWLP_USER));
+                DialogBoxParamW(netcfgx_hInstance,
+                                MAKEINTRESOURCEW(IDD_TCPIP_FILTER_DLG), 
+                                GetParent(hwndDlg), 
+                                TcpipFilterSettingsDlg,
+                                (LPARAM)GetWindowLongPtr(hwndDlg, DWLP_USER));
                 break;
             }
     }
@@ -2359,15 +2358,12 @@ CopyIpAddrString(
     COPY_TYPE Type,
     LPWSTR szMetric)
 {
-    LPWSTR szItem;
     IP_ADDR_STRING * pCurrent;
     IP_ADDR *pNew, *pLast;
 
     pCurrent = pSrc;
     pLast = NULL;
 
-    szItem = szMetric;
-
     while(pCurrent)
     {
         pNew = CoTaskMemAlloc(sizeof(IP_ADDR));
index 771a63e..eede3e7 100644 (file)
@@ -11,12 +11,9 @@ list(APPEND SOURCE
     ${CMAKE_CURRENT_BINARY_DIR}/spoolss.def)
 
 add_library(spoolss SHARED ${SOURCE})
-
+allow_warnings(spoolss)
 set_module_type(spoolss win32dll)
-
 target_link_libraries(spoolss wine)
-
 add_importlibs(spoolss winspool msvcrt kernel32 ntdll)
 add_importlib_target(spoolss.spec)
-
 add_cd_file(TARGET spoolss DESTINATION reactos/system32 FOR all)
index 8401c07..eda3cd5 100644 (file)
@@ -702,12 +702,11 @@ WsAsyncThread(IN PWSASYNCCONTEXT Context)
 {
     PWSASYNCBLOCK AsyncBlock;
     PLIST_ENTRY Entry;
-    FARPROC OldHook;
     HANDLE AsyncEvent = Context->AsyncEvent;
     PLIST_ENTRY ListHead = &Context->AsyncQueue;
 
     /* Set the blocking hook */
-    OldHook = WSASetBlockingHook((FARPROC)WsAsyncThreadBlockingHook);
+    WSASetBlockingHook((FARPROC)WsAsyncThreadBlockingHook);
 
     /* Loop */
     while (TRUE)
index a4d18c9..f8814f9 100644 (file)
@@ -103,7 +103,6 @@ PTCATALOG
 WSAAPI
 OpenInitializedCatalog(VOID)
 {
-    INT ErrorCode;
     PTCATALOG Catalog;
     HKEY WsKey;
 
@@ -115,7 +114,7 @@ OpenInitializedCatalog(VOID)
         WsKey = WsOpenRegistryRoot();
 
         /* Initialize the catalog */
-        ErrorCode = WsTcInitializeFromRegistry(Catalog, WsKey, NULL);
+        WsTcInitializeFromRegistry(Catalog, WsKey, NULL);
 
         /* Close the key */
         RegCloseKey(WsKey);
index 13794a7..0d201a9 100644 (file)
@@ -67,7 +67,6 @@ WsNcEntryInitializeFromRegistry(IN PNSCATALOG_ENTRY CatalogEntry,
 {
     CHAR CatalogEntryName[13];
     HKEY EntryKey;
-    LONG Return;
     ULONG RegType = REG_SZ;
     ULONG RegSize = MAX_PATH;
 
@@ -75,90 +74,90 @@ WsNcEntryInitializeFromRegistry(IN PNSCATALOG_ENTRY CatalogEntry,
     sprintf(CatalogEntryName, "%0""12""i", (int)UniqueId);
 
     /* Open the Entry */
-    Return = RegOpenKeyEx(ParentKey,
-                          CatalogEntryName,
-                          0,
-                          KEY_READ,
-                          &EntryKey);
+    RegOpenKeyEx(ParentKey,
+                 CatalogEntryName,
+                 0,
+                 KEY_READ,
+                 &EntryKey);
 
     /* Read the Library Path */
-    Return = RegQueryValueExW(EntryKey,
-                              L"LibraryPath",
-                              0,
-                              &RegType,
-                              (LPBYTE)&CatalogEntry->DllPath,
-                              &RegSize);
+    RegQueryValueExW(EntryKey,
+                     L"LibraryPath",
+                     0,
+                     &RegType,
+                     (LPBYTE)&CatalogEntry->DllPath,
+                     &RegSize);
 
     /* Query Display String Size*/
-    Return = RegQueryValueExW(EntryKey,
-                              L"DisplayString",
-                              0,
-                              NULL,
-                              NULL,
-                              &RegSize);
+    RegQueryValueExW(EntryKey,
+                     L"DisplayString",
+                     0,
+                     NULL,
+                     NULL,
+                     &RegSize);
 
     /* Allocate it */
     CatalogEntry->ProviderName = (LPWSTR)HeapAlloc(WsSockHeap, 0, RegSize);
 
     /* Read it */
-    Return = RegQueryValueExW(EntryKey,
-                              L"DisplayString",
-                              0,
-                              &RegType,
-                              (LPBYTE)CatalogEntry->ProviderName,
-                              &RegSize);
+    RegQueryValueExW(EntryKey,
+                     L"DisplayString",
+                     0,
+                     &RegType,
+                     (LPBYTE)CatalogEntry->ProviderName,
+                     &RegSize);
 
     /* Read the Provider Id */
     RegType = REG_BINARY;
     RegSize = sizeof(GUID);
-    Return = RegQueryValueEx(EntryKey,
-                             "ProviderId",
-                             0,
-                             &RegType,
-                             (LPBYTE)&CatalogEntry->ProviderId,
-                             &RegSize);
+    RegQueryValueEx(EntryKey,
+                    "ProviderId",
+                    0,
+                    &RegType,
+                    (LPBYTE)&CatalogEntry->ProviderId,
+                    &RegSize);
 
     /* Read the Address Family */
     RegType = REG_DWORD;
     RegSize = sizeof(DWORD);
-    Return = RegQueryValueEx(EntryKey,
-                             "AddressFamily",
-                             0,
-                             &RegType,
-                             (LPBYTE)&CatalogEntry->AddressFamily,
-                             &RegSize);
+    RegQueryValueEx(EntryKey,
+                    "AddressFamily",
+                    0,
+                    &RegType,
+                    (LPBYTE)&CatalogEntry->AddressFamily,
+                    &RegSize);
 
     /* Read the Namespace Id */
-    Return = RegQueryValueEx(EntryKey,
-                             "SupportedNamespace",
-                             0,
-                             &RegType,
-                             (LPBYTE)&CatalogEntry->NamespaceId,
-                             &RegSize);
+    RegQueryValueEx(EntryKey,
+                    "SupportedNamespace",
+                    0,
+                    &RegType,
+                    (LPBYTE)&CatalogEntry->NamespaceId,
+                    &RegSize);
 
     /* Read the Enabled Flag */
-    Return = RegQueryValueEx(EntryKey,
-                             "Enabled",
-                             0,
-                             &RegType,
-                             (LPBYTE)&CatalogEntry->Enabled,
-                             &RegSize);
+    RegQueryValueEx(EntryKey,
+                    "Enabled",
+                    0,
+                    &RegType,
+                    (LPBYTE)&CatalogEntry->Enabled,
+                    &RegSize);
 
     /* Read the Version */
-    Return = RegQueryValueEx(EntryKey,
-                             "Version",
-                             0,
-                             &RegType,
-                             (LPBYTE)&CatalogEntry->Version,
-                             &RegSize);
+    RegQueryValueEx(EntryKey,
+                    "Version",
+                    0,
+                    &RegType,
+                    (LPBYTE)&CatalogEntry->Version,
+                    &RegSize);
 
     /* Read the Support Service Class Info Flag */
-    Return = RegQueryValueEx(EntryKey,
-                             "Version",
-                             0,
-                             &RegType,
-                             (LPBYTE)&CatalogEntry->StoresServiceClassInfo,
-                             &RegSize);
+    RegQueryValueEx(EntryKey,
+                    "Version",
+                    0,
+                    &RegType,
+                    (LPBYTE)&CatalogEntry->StoresServiceClassInfo,
+                    &RegSize);
 
     /* Done */
     RegCloseKey(EntryKey);
index b1c8673..5b1196d 100644 (file)
@@ -80,25 +80,24 @@ WsNpInitialize(IN PNS_PROVIDER Provider,
                IN LPWSTR DllName,
                IN LPGUID ProviderId)
 {
-    DWORD ExpandedPathLength, PathLength;
     INT ErrorCode = ERROR_SUCCESS;
     LPNSPSTARTUP NSPStartupProc;
     CHAR AnsiPath[MAX_PATH], ExpandedDllPath[MAX_PATH];
     
     /* Convert the path to ANSI */
-    PathLength = WideCharToMultiByte(CP_ACP,
-                                     0,
-                                     DllName,
-                                     -1,
-                                     AnsiPath,
-                                     MAX_PATH,
-                                     NULL,
-                                     NULL);
+    WideCharToMultiByte(CP_ACP,
+                        0,
+                        DllName,
+                        -1,
+                        AnsiPath,
+                        MAX_PATH,
+                        NULL,
+                        NULL);
 
     /* Expand the DLL Path */
-    ExpandedPathLength = ExpandEnvironmentStringsA(AnsiPath,
-                                                   ExpandedDllPath,
-                                                   MAX_PATH);
+    ExpandEnvironmentStringsA(AnsiPath,
+                              ExpandedDllPath,
+                              MAX_PATH);
 
     /* Load the DLL */
     Provider->DllHandle = LoadLibraryA(ExpandedDllPath);
index 3d3c9f4..2333c00 100644 (file)
@@ -14,10 +14,6 @@ Dispatch_fnDeviceIoControl(
     PDEVICE_OBJECT DeviceObject,
     PIRP Irp)
 {
-    PIO_STACK_LOCATION IoStack;
-
-    IoStack = IoGetCurrentIrpStackLocation(Irp);
-
     UNIMPLEMENTED
 
     Irp->IoStatus.Status = STATUS_UNSUCCESSFUL;
index 459065a..6559343 100644 (file)
@@ -296,14 +296,10 @@ SysAudioHandleProperty(
     PKSAUDIO_DEVICE_ENTRY Entry;
     PSYSAUDIO_INSTANCE_INFO InstanceInfo;
     ULONG BytesReturned;
-    PKSOBJECT_CREATE_ITEM CreateItem;
     UNICODE_STRING GuidString;
     PKSP_PIN Pin;
     LPWSTR DeviceName;
 
-    /* access the create item */
-    CreateItem = KSCREATE_ITEM_IRP_STORAGE(Irp);
-
     IoStack = IoGetCurrentIrpStackLocation(Irp);
 
     if (IoStack->Parameters.DeviceIoControl.InputBufferLength < sizeof(KSPROPERTY))
index 605946c..bf0011f 100644 (file)
@@ -133,11 +133,8 @@ DeviceInterfaceChangeCallback(
 {
     DEVICE_INTERFACE_CHANGE_NOTIFICATION * Event;
     NTSTATUS Status = STATUS_SUCCESS;
-    PSYSAUDIODEVEXT DeviceExtension;
     PDEVICE_OBJECT DeviceObject = (PDEVICE_OBJECT)Context;
 
-    DeviceExtension = (PSYSAUDIODEVEXT)DeviceObject->DeviceExtension;
-
     Event = (DEVICE_INTERFACE_CHANGE_NOTIFICATION*)NotificationStructure;
 
     if (IsEqualGUIDAligned(&Event->Event,
index 708381f..eda1924 100644 (file)
@@ -160,7 +160,6 @@ NTSTATUS ICMPSendDatagram(
     IP_PACKET Packet;
     PTA_IP_ADDRESS RemoteAddressTa = (PTA_IP_ADDRESS)ConnInfo->RemoteAddress;
     IP_ADDRESS RemoteAddress,  LocalAddress;
-    USHORT RemotePort;
     NTSTATUS Status;
     PNEIGHBOR_CACHE_ENTRY NCE;
     KIRQL OldIrql;
@@ -170,15 +169,14 @@ NTSTATUS ICMPSendDatagram(
     TI_DbgPrint(MID_TRACE,("RemoteAddressTa: %x\n", RemoteAddressTa));
 
     switch( RemoteAddressTa->Address[0].AddressType ) {
-    case TDI_ADDRESS_TYPE_IP:
-       RemoteAddress.Type = IP_ADDRESS_V4;
-       RemoteAddress.Address.IPv4Address =
-           RemoteAddressTa->Address[0].Address[0].in_addr;
-       RemotePort = RemoteAddressTa->Address[0].Address[0].sin_port;
-       break;
-
-    default:
-       return STATUS_UNSUCCESSFUL;
+        case TDI_ADDRESS_TYPE_IP:
+            RemoteAddress.Type = IP_ADDRESS_V4;
+            RemoteAddress.Address.IPv4Address =
+                RemoteAddressTa->Address[0].Address[0].in_addr;
+            break;
+
+        default:
+            return STATUS_UNSUCCESSFUL;
     }
 
     TI_DbgPrint(MID_TRACE,("About to get route to destination\n"));
index d541124..3dac6cb 100644 (file)
@@ -252,7 +252,7 @@ PNEIGHBOR_CACHE_ENTRY RouterGetRoute(PIP_ADDRESS Destination)
     PLIST_ENTRY CurrentEntry;
     PLIST_ENTRY NextEntry;
     PFIB_ENTRY Current;
-    UCHAR State, BestState = 0;
+    UCHAR State;
     UINT Length, BestLength = 0, MaskLength;
     PNEIGHBOR_CACHE_ENTRY NCE, BestNCE = NULL;
 
@@ -281,7 +281,6 @@ PNEIGHBOR_CACHE_ENTRY RouterGetRoute(PIP_ADDRESS Destination)
            /* This seems to be a better router */
            BestNCE    = NCE;
            BestLength = Length;
-           BestState  = State;
            TI_DbgPrint(DEBUG_ROUTER,("Route selected\n"));
        }
 
index 1cae506..dc1940a 100644 (file)
@@ -34,13 +34,12 @@ DisconnectTimeoutDpc(PKDPC Dpc,
     PCONNECTION_ENDPOINT Connection = (PCONNECTION_ENDPOINT)DeferredContext;
     PLIST_ENTRY Entry;
     PTDI_BUCKET Bucket;
-    NTSTATUS Status;
-    
+
     LockObjectAtDpcLevel(Connection);
-    
+
     /* We timed out waiting for pending sends so force it to shutdown */
-    Status = TCPTranslateError(LibTCPShutdown(Connection, 0, 1));
-    
+    TCPTranslateError(LibTCPShutdown(Connection, 0, 1));
+
     while (!IsListEmpty(&Connection->SendRequest))
     {
         Entry = RemoveHeadList(&Connection->SendRequest);
@@ -151,12 +150,9 @@ NTSTATUS TCPSocket( PCONNECTION_ENDPOINT Connection,
 NTSTATUS TCPClose( PCONNECTION_ENDPOINT Connection )
 {
     KIRQL OldIrql;
-    PVOID Socket;
 
     LockObject(Connection, &OldIrql);
 
-    Socket = Connection->SocketContext;
-
     FlushAllQueues(Connection, STATUS_CANCELLED);
 
     LibTCPClose(Connection, FALSE, TRUE);
index 4809c91..a6f5d65 100644 (file)
@@ -126,7 +126,6 @@ MMixerCheckFilterPinMidiSupport(
     PKSDATARANGE DataRange;
     KSPIN_COMMUNICATION Communication;
     KSPIN_DATAFLOW DataFlow;
-    MIXER_STATUS Status;
 
     /* get first datarange */
     DataRange = (PKSDATARANGE)(MultipleItem + 1);
@@ -146,11 +145,11 @@ MMixerCheckFilterPinMidiSupport(
             {
                 if (DataFlow == KSPIN_DATAFLOW_IN && Communication == KSPIN_COMMUNICATION_SINK)
                 {
-                    Status = MMixerAddMidiPin(MixerContext, MixerList, MixerData->DeviceId, PinId, FALSE, szPname);
+                    MMixerAddMidiPin(MixerContext, MixerList, MixerData->DeviceId, PinId, FALSE, szPname);
                 }
                 else if (DataFlow == KSPIN_DATAFLOW_OUT && Communication == KSPIN_COMMUNICATION_SOURCE)
                 {
-                    Status = MMixerAddMidiPin(MixerContext, MixerList, MixerData->DeviceId, PinId, TRUE, szPname);
+                    MMixerAddMidiPin(MixerContext, MixerList, MixerData->DeviceId, PinId, TRUE, szPname);
                 }
             }
         }
index c1d4c3d..df614cf 100644 (file)
@@ -525,16 +525,12 @@ MMixerExploreTopology(
     IN OUT PTOPOLOGY Topology)
 {
     ULONG Index;
-    LPGUID Guids;
     PKSTOPOLOGY_CONNECTION Connection;
     MIXER_STATUS Status;
 
     /* sanity check */
     ASSERT(Topology->TopologyNodesCount == NodeTypes->Count);
 
-    /* get topology node types */
-    Guids = (LPGUID)(NodeTypes + 1);
-
     /* get node connections */
     Connection = (PKSTOPOLOGY_CONNECTION)(NodeConnections + 1);
 
index 0137fab..cd1cfaf 100644 (file)
@@ -357,7 +357,6 @@ Fat32Format(IN HANDLE FileHandle,
 {
     FAT32_BOOT_SECTOR BootSector;
     OEM_STRING VolumeLabel;
-    ULONG RootDirSectors;
     ULONG TmpVal1;
     ULONG TmpVal2;
     NTSTATUS Status;
@@ -426,9 +425,6 @@ Fat32Format(IN HANDLE FileHandle,
 
     memcpy(&BootSector.SysType[0], "FAT32   ", 8);
 
-    RootDirSectors = ((BootSector.RootEntries * 32) +
-        (BootSector.BytesPerSector - 1)) / BootSector.BytesPerSector;
-
     /* Calculate number of FAT sectors */
     /* (BytesPerSector / 4) FAT entries (32bit) fit into one sector */
     TmpVal1 = BootSector.SectorsHuge - BootSector.ReservedSectors;
index e46501c..f3b0146 100644 (file)
@@ -329,7 +329,10 @@ VfatChkdsk(IN PUNICODE_STRING DriveRoot,
            IN BOOLEAN ScanDrive,
            IN PFMIFSCALLBACK Callback)
 {
-    BOOLEAN verify, salvage_files;
+#if 0
+    BOOLEAN verify;
+    BOOLEAN salvage_files;
+#endif
     //ULONG free_clusters;
     //DOS_FS fs;
 
@@ -344,9 +347,10 @@ VfatChkdsk(IN PUNICODE_STRING DriveRoot,
 
     FsCheckTotalFiles = 0;
 
+#if 0
     verify = TRUE;
     salvage_files = TRUE;
-#if 0
+
     /* Open filesystem */
     fs_open(DriveRoot,FixErrors);