Author: akhaldi
Date: Sat Sep 10 21:31:09 2011
New Revision: 53676
URL:
http://svn.reactos.org/svn/reactos?rev=53676&view=rev
Log:
* Fix some unused but set variables. Brought to you by gcc 4.6.1.
* Allow warnings for some 3rd party code.
Modified:
trunk/reactos/base/applications/msconfig/msconfig.c
trunk/reactos/base/applications/msconfig/startuppage.c
trunk/reactos/base/applications/network/telnet/src/tnconfig.cpp
trunk/reactos/base/applications/sndrec32/audio_wavein.cpp
trunk/reactos/base/applications/sndrec32/audio_waveout.cpp
trunk/reactos/base/applications/sndrec32/sndrec32.cpp
trunk/reactos/base/applications/taskmgr/applpage.c
trunk/reactos/base/applications/taskmgr/procpage.c
trunk/reactos/base/services/telnetd/serviceentry.c
trunk/reactos/base/setup/usetup/cabinet.c
trunk/reactos/base/shell/cmd/goto.c
trunk/reactos/base/shell/explorer/i386-stub-win32.c
trunk/reactos/boot/freeldr/freeldr/windows/winldr.c
trunk/reactos/dll/cpl/desk/draw.c
trunk/reactos/dll/cpl/desk/monslctl.c
trunk/reactos/dll/cpl/input/settings.c
trunk/reactos/dll/cpl/intl/currency.c
trunk/reactos/dll/cpl/intl/numbers.c
trunk/reactos/dll/cpl/mmsys/sounds.c
trunk/reactos/dll/cpl/sysdm/userprofile.c
trunk/reactos/dll/cpl/usrmgr/groups.c
trunk/reactos/dll/cpl/usrmgr/users.c
trunk/reactos/dll/win32/aclui/CMakeLists.txt
trunk/reactos/dll/win32/advpack/CMakeLists.txt
trunk/reactos/dll/win32/beepmidi/beepmidi.c
trunk/reactos/dll/win32/wshtcpip/wshtcpip.c
trunk/reactos/drivers/bus/acpi/CMakeLists.txt
trunk/reactos/drivers/bus/pci/fdo.c
trunk/reactos/drivers/bus/pci/pdo.c
trunk/reactos/drivers/filesystems/cdfs/finfo.c
trunk/reactos/drivers/filesystems/cdfs/rw.c
trunk/reactos/drivers/filesystems/fastfat/fat.c
trunk/reactos/drivers/filesystems/fastfat/rw.c
trunk/reactos/drivers/filesystems/msfs/finfo.c
trunk/reactos/drivers/filesystems/msfs/fsctrl.c
trunk/reactos/drivers/filesystems/ntfs/fsctl.c
trunk/reactos/drivers/serial/serial/info.c
trunk/reactos/drivers/serial/serial/rw.c
trunk/reactos/drivers/storage/class/cdrom/cdrom.c
trunk/reactos/drivers/storage/ide/uniata/CMakeLists.txt
trunk/reactos/lib/3rdparty/adns/CMakeLists.txt
trunk/reactos/lib/3rdparty/freetype/CMakeLists.txt
trunk/reactos/lib/3rdparty/libmpg123/CMakeLists.txt
trunk/reactos/lib/fslib/ext2lib/CMakeLists.txt
Modified: trunk/reactos/base/applications/msconfig/msconfig.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/msconfig…
==============================================================================
--- trunk/reactos/base/applications/msconfig/msconfig.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/msconfig/msconfig.c [iso-8859-1] Sat Sep 10 21:31:09
2011
@@ -160,7 +160,6 @@
INT_PTR CALLBACK
MsConfigWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
- int idctrl;
LPNMHDR pnmh;
UINT uXIconNew, uYIconNew;
@@ -202,7 +201,6 @@
break;
case WM_NOTIFY:
- idctrl = wParam;
pnmh = (LPNMHDR)lParam;
if ((pnmh->hwndFrom == hTabWnd) &&
(pnmh->idFrom == IDC_TAB) &&
Modified: trunk/reactos/base/applications/msconfig/startuppage.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/msconfig…
==============================================================================
--- trunk/reactos/base/applications/msconfig/startuppage.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/msconfig/startuppage.c [iso-8859-1] Sat Sep 10
21:31:09 2011
@@ -77,7 +77,7 @@
GetDisabledAutostartEntriesFromRegistry (TCHAR * szBasePath)
{
HKEY hKey, hSubKey;
- DWORD Index, SubIndex, dwValues, dwSubValues, retVal;
+ DWORD Index, SubIndex, dwValues, dwSubValues;
DWORD dwValueLength, dwDataLength = MAX_VALUE_NAME;
LV_ITEM item;
TCHAR* Data;
@@ -89,7 +89,7 @@
{
if (RegQueryInfoKey(hKey, NULL, NULL, NULL, &dwValues, NULL, NULL, NULL,
NULL, NULL, NULL, NULL) == ERROR_SUCCESS)
{
- for (Index = 0, retVal = ERROR_SUCCESS; Index < dwValues; Index++)
+ for (Index = 0; Index < dwValues; Index++)
{
dwValueLength = MAX_KEY_LENGTH;
dwDataLength = MAX_VALUE_NAME;
@@ -97,7 +97,7 @@
if (Data == NULL)
break;
- retVal = RegEnumKeyEx(hKey, Index, szValueName, &dwValueLength, NULL,
NULL, NULL, NULL);
+ RegEnumKeyEx(hKey, Index, szValueName, &dwValueLength, NULL, NULL,
NULL, NULL);
_stprintf(szSubPath, _T("%s\\%s"), szBasePath, szValueName);
memset(&item, 0, sizeof(LV_ITEM));
item.mask = LVIF_TEXT;
Modified: trunk/reactos/base/applications/network/telnet/src/tnconfig.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/telnet/src/tnconfig.cpp [iso-8859-1]
(original)
+++ trunk/reactos/base/applications/network/telnet/src/tnconfig.cpp [iso-8859-1] Sat Sep
10 21:31:09 2011
@@ -394,8 +394,8 @@
}
// See if the group exists
- int j, flag;
- for(j = 0, flag = 0; j < MAX_INI_GROUPS; j++)
+ int j;
+ for(j = 0; j < MAX_INI_GROUPS; j++)
if(!stricmp(ini_groups[j], s)) break;
// If not, print out the value of the variable by that name
if(j == MAX_INI_GROUPS) {
Modified: trunk/reactos/base/applications/sndrec32/audio_wavein.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/sndrec32…
==============================================================================
--- trunk/reactos/base/applications/sndrec32/audio_wavein.cpp [iso-8859-1] (original)
+++ trunk/reactos/base/applications/sndrec32/audio_wavein.cpp [iso-8859-1] Sat Sep 10
21:31:09 2011
@@ -619,8 +619,6 @@
MMRESULT err;
- DWORD wait;
-
if ( status != WAVEIN_RECORDING )
return;
@@ -650,9 +648,7 @@
if ( data_flushed_event )
- wait = WaitForSingleObject(
- data_flushed_event, INFINITE
- );
+ WaitForSingleObject(data_flushed_event, INFINITE);
@@ -709,7 +705,6 @@
MSG msg;
WAVEHDR * phdr;
- DWORD wait;
audio_wavein * _this = ( audio_wavein * ) arg;
@@ -731,9 +726,7 @@
//
if ( _this->wakeup_recthread )
- wait = WaitForSingleObject(
- _this->wakeup_recthread, INFINITE
- );
+ WaitForSingleObject(_this->wakeup_recthread, INFINITE);
@@ -842,9 +835,8 @@
// recording thread can go to sleep!
//
- wait = WaitForSingleObject(
- _this->wakeup_recthread, INFINITE );
-
+ WaitForSingleObject(_this->wakeup_recthread, INFINITE);
+
}
Modified: trunk/reactos/base/applications/sndrec32/audio_waveout.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/sndrec32…
==============================================================================
--- trunk/reactos/base/applications/sndrec32/audio_waveout.cpp [iso-8859-1] (original)
+++ trunk/reactos/base/applications/sndrec32/audio_waveout.cpp [iso-8859-1] Sat Sep 10
21:31:09 2011
@@ -460,8 +460,6 @@
MMRESULT err;
unsigned int i;
- BOOL ev;
-
if ( !main_buffer )
{ return; } //TODO; throw error, or assert
@@ -495,7 +493,7 @@
// Wakeup playing thread.
//
- ev = SetEvent( wakeup_playthread );
+ SetEvent( wakeup_playthread );
return;
@@ -553,7 +551,7 @@
// Wakeup the playing thread.
//
- ev = SetEvent( wakeup_playthread );
+ SetEvent( wakeup_playthread );
@@ -752,7 +750,6 @@
{
MSG msg;
WAVEHDR * phdr;
- DWORD wait;
MMRESULT err;
audio_waveout * _this = ( audio_waveout * ) arg;
unsigned int read_size;
@@ -775,9 +772,7 @@
//
if ( _this->wakeup_playthread )
- wait = WaitForSingleObject(
- _this->wakeup_playthread, INFINITE
- );
+ WaitForSingleObject(_this->wakeup_playthread, INFINITE);
@@ -806,11 +801,7 @@
( _this->status != WAVEOUT_FLUSHING ) &&
( _this->wakeup_playthread ))
{
-
- wait = WaitForSingleObject(
- _this->wakeup_playthread,
- INFINITE
- );
+ WaitForSingleObject(_this->wakeup_playthread, INFINITE);
}
@@ -956,10 +947,8 @@
if ( _this->wakeup_playthread )
- wait = WaitForSingleObject(
- _this->wakeup_playthread,
- INFINITE
- );
+ WaitForSingleObject(_this->wakeup_playthread,
+ INFINITE);
} //if ( phdr->dwUser == ( _this->buffers - 1 ))
Modified: trunk/reactos/base/applications/sndrec32/sndrec32.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/sndrec32…
==============================================================================
--- trunk/reactos/base/applications/sndrec32/sndrec32.cpp [iso-8859-1] (original)
+++ trunk/reactos/base/applications/sndrec32/sndrec32.cpp [iso-8859-1] Sat Sep 10 21:31:09
2011
@@ -542,7 +542,7 @@
LRESULT CALLBACK
WndProc( HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam )
{
- int wmId, wmEvent;
+ int wmId;
TCHAR str_tmp[MAX_LOADSTRING];
PAINTSTRUCT ps;
HDC hdc;
@@ -724,8 +724,7 @@
case WM_COMMAND:
wmId = LOWORD( wParam );
- wmEvent = HIWORD( wParam );
-
+
if (( wmId >= 0 ) && ( wmId < 5 ) && ( butdisabled[wmId] ==
TRUE ))
break;
Modified: trunk/reactos/base/applications/taskmgr/applpage.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/taskmgr/…
==============================================================================
--- trunk/reactos/base/applications/taskmgr/applpage.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/taskmgr/applpage.c [iso-8859-1] Sat Sep 10 21:31:09
2011
@@ -527,17 +527,12 @@
void ApplicationPageOnNotify(WPARAM wParam, LPARAM lParam)
{
- int idctrl;
LPNMHDR pnmh;
- LPNM_LISTVIEW pnmv;
LV_DISPINFO* pnmdi;
LPAPPLICATION_PAGE_LIST_ITEM pAPLI;
WCHAR szMsg[256];
-
- idctrl = (int) wParam;
pnmh = (LPNMHDR) lParam;
- pnmv = (LPNM_LISTVIEW) lParam;
pnmdi = (LV_DISPINFO*) lParam;
if (pnmh->hwndFrom == hApplicationPageListCtrl) {
Modified: trunk/reactos/base/applications/taskmgr/procpage.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/taskmgr/…
==============================================================================
--- trunk/reactos/base/applications/taskmgr/procpage.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/taskmgr/procpage.c [iso-8859-1] Sat Sep 10 21:31:09
2011
@@ -213,18 +213,14 @@
void ProcessPageOnNotify(WPARAM wParam, LPARAM lParam)
{
- int idctrl;
LPNMHDR pnmh;
- LPNMLISTVIEW pnmv;
NMLVDISPINFO* pnmdi;
LPNMHEADER pnmhdr;
ULONG Index;
ULONG ColumnIndex;
LPPROCESS_PAGE_LIST_ITEM pData;
- idctrl = (int) wParam;
pnmh = (LPNMHDR) lParam;
- pnmv = (LPNMLISTVIEW) lParam;
pnmdi = (NMLVDISPINFO*) lParam;
pnmhdr = (LPNMHEADER) lParam;
Modified: trunk/reactos/base/services/telnetd/serviceentry.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/telnetd/serv…
==============================================================================
--- trunk/reactos/base/services/telnetd/serviceentry.c [iso-8859-1] (original)
+++ trunk/reactos/base/services/telnetd/serviceentry.c [iso-8859-1] Sat Sep 10 21:31:09
2011
@@ -62,7 +62,6 @@
static void WINAPI serv_main(DWORD argc, LPWSTR *argv)
{
SERVICE_STATUS status;
- int retval;
WINE_TRACE( "starting service\n" );
@@ -82,7 +81,7 @@
SetServiceStatus( service_handle, &status );
/* Argument Ignored for now */
- retval = kickoff_telnetd();
+ kickoff_telnetd();
WaitForSingleObject( stop_event, INFINITE );
Modified: trunk/reactos/base/setup/usetup/cabinet.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/cabinet.…
==============================================================================
--- trunk/reactos/base/setup/usetup/cabinet.c [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/cabinet.c [iso-8859-1] Sat Sep 10 21:31:09 2011
@@ -510,7 +510,6 @@
IO_STATUS_BLOCK IoStatusBlock;
UNICODE_STRING FileName;
NTSTATUS NtStatus;
- ULONG Size;
RtlInitUnicodeString(&FileName, CabinetName);
@@ -581,7 +580,6 @@
return CAB_STATUS_INVALID_CAB;
}
- Size = 0;
Buffer = (PUCHAR)(PCABHeader + 1);
/* Read/skip any reserved bytes */
Modified: trunk/reactos/base/shell/cmd/goto.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/goto.c?rev=…
==============================================================================
--- trunk/reactos/base/shell/cmd/goto.c [iso-8859-1] (original)
+++ trunk/reactos/base/shell/cmd/goto.c [iso-8859-1] Sat Sep 10 21:31:09 2011
@@ -39,7 +39,6 @@
INT cmd_goto (LPTSTR param)
{
LPTSTR tmp, tmp2;
- LONG lNewPosHigh = 0;
TRACE ("cmd_goto (\'%s\')\n", debugstr_aw(param));
@@ -67,9 +66,6 @@
while (!_istcntrl (*tmp) && !_istspace (*tmp) && (*tmp !=
_T(':')))
tmp++;
*(tmp) = _T('\0');
-
- /* set file pointer to the beginning of the batch file */
- lNewPosHigh = 0;
/* jump to end of the file */
if ( _tcsicmp( param, _T(":eof"))==0)
Modified: trunk/reactos/base/shell/explorer/i386-stub-win32.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer/i386-s…
==============================================================================
--- trunk/reactos/base/shell/explorer/i386-stub-win32.c [iso-8859-1] (original)
+++ trunk/reactos/base/shell/explorer/i386-stub-win32.c [iso-8859-1] Sat Sep 10 21:31:09
2011
@@ -836,7 +836,6 @@
int sigval, stepping;
int addr, length;
char *ptr;
- int newPC;
#ifndef WIN32 //MF
gdb_i386vector = exceptionVector;
@@ -978,8 +977,6 @@
if (hexToInt (&ptr, &addr))
registers[PC] = addr;
- newPC = registers[PC];
-
/* clear the trace bit */
registers[PS] &= 0xfffffeff;
Modified: trunk/reactos/boot/freeldr/freeldr/windows/winldr.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/windo…
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/windows/winldr.c [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/windows/winldr.c [iso-8859-1] Sat Sep 10 21:31:09
2011
@@ -566,7 +566,6 @@
PLOADER_PARAMETER_BLOCK LoaderBlockVA;
BOOLEAN Status;
CHAR FileName[MAX_PATH];
- PVOID NtosBase = NULL, HalBase = NULL, KdComBase = NULL;
PLDR_DATA_TABLE_ENTRY KernelDTE, HalDTE, KdComDTE = NULL;
KERNEL_ENTRY_POINT KiSystemStartup;
LPCSTR SystemRoot;
@@ -582,15 +581,15 @@
OperatingSystemVersion = WinLdrDetectVersion();
/* Load kernel */
- NtosBase = LoadModule(LoaderBlock, BootPath, "NTOSKRNL.EXE", &KernelDTE,
30);
+ LoadModule(LoaderBlock, BootPath, "NTOSKRNL.EXE", &KernelDTE, 30);
/* Load HAL */
- HalBase = LoadModule(LoaderBlock, BootPath, "HAL.DLL", &HalDTE, 45);
+ LoadModule(LoaderBlock, BootPath, "HAL.DLL", &HalDTE, 45);
/* Load kernel-debugger support dll */
if (OperatingSystemVersion > _WIN32_WINNT_WIN2K)
{
- KdComBase = LoadModule(LoaderBlock, BootPath, "KDCOM.DLL", &KdComDTE,
60);
+ LoadModule(LoaderBlock, BootPath, "KDCOM.DLL", &KdComDTE, 60);
}
/* Load all referenced DLLs for kernel, HAL and kdcom.dll */
Modified: trunk/reactos/dll/cpl/desk/draw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/draw.c?rev=53…
==============================================================================
--- trunk/reactos/dll/cpl/desk/draw.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/desk/draw.c [iso-8859-1] Sat Sep 10 21:31:09 2011
@@ -438,17 +438,13 @@
MyDrawCaptionTemp(HWND hwnd, HDC hdc, const RECT *rect, HFONT hFont, HICON hIcon, LPCWSTR
str, UINT uFlags, THEME *theme)
{
ULONG Height;
- UINT VCenter, Padding;
- LONG ButtonWidth;
+ UINT VCenter;
HBRUSH hbr;
HGDIOBJ hFontOld;
RECT rc;
Height = theme->Size[SIZE_CAPTION_Y] - 1;
VCenter = (rect->bottom - rect->top) / 2;
- Padding = VCenter - (Height / 2);
-
- ButtonWidth = theme->Size[SIZE_SIZE_X] - 2;
if (uFlags & DC_GRADIENT)
{
Modified: trunk/reactos/dll/cpl/desk/monslctl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/monslctl.c?re…
==============================================================================
--- trunk/reactos/dll/cpl/desk/monslctl.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/desk/monslctl.c [iso-8859-1] Sat Sep 10 21:31:09 2011
@@ -684,7 +684,6 @@
SIZE rcsize;
LOGFONT lf;
HFONT hPrevFont, hFont;
- INT len;
hFont = infoPtr->Monitors[Index].hFont;
if (hFont == NULL &&
@@ -697,8 +696,6 @@
rcsize.cy = infoPtr->Monitors[Index].rc.bottom -
infoPtr->Monitors[Index].rc.top -
(2 * infoPtr->SelectionFrame.cy) - 2;
rcsize.cy = (rcsize.cy * 60) / 100;
-
- len = _tcslen(infoPtr->Monitors[Index].szCaption);
hPrevFont = SelectObject(hDC,
infoPtr->hFont);
Modified: trunk/reactos/dll/cpl/input/settings.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/input/settings.c?r…
==============================================================================
--- trunk/reactos/dll/cpl/input/settings.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/input/settings.c [iso-8859-1] Sat Sep 10 21:31:09 2011
@@ -110,7 +110,6 @@
HDC hdc, hdcsrc;
HBITMAP hBitmap, hBmpNew, hBmpOld;
RECT rect;
- DWORD bkColor, bkText;
HFONT hFont = NULL;
ICONINFO IconInfo;
HICON hIcon = NULL;
@@ -131,8 +130,8 @@
rect.bottom = 16;
rect.top = 0;
- bkColor = SetBkColor(hdc, GetSysColor(COLOR_HIGHLIGHT));
- bkText = SetTextColor(hdc, GetSysColor(COLOR_HIGHLIGHTTEXT));
+ SetBkColor(hdc, GetSysColor(COLOR_HIGHLIGHT));
+ SetTextColor(hdc, GetSysColor(COLOR_HIGHLIGHTTEXT));
ExtTextOut(hdc, rect.left, rect.top, ETO_OPAQUE, &rect, _T(""),
0, NULL);
Modified: trunk/reactos/dll/cpl/intl/currency.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/intl/currency.c?re…
==============================================================================
--- trunk/reactos/dll/cpl/intl/currency.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/intl/currency.c [iso-8859-1] Sat Sep 10 21:31:09 2011
@@ -341,18 +341,17 @@
TCHAR szGrouping[MAX_FMT_SIZE];
TCHAR szBuffer[MAX_FMT_SIZE];
CURRENCYFMT cyFmt;
- INT ret;
INT i;
/* Get group separator */
- ret = GetLocaleInfo(pGlobalData->lcid,
- LOCALE_SMONTHOUSANDSEP,
- szThousandSep, MAX_FMT_SIZE);
+ GetLocaleInfo(pGlobalData->lcid,
+ LOCALE_SMONTHOUSANDSEP,
+ szThousandSep, MAX_FMT_SIZE);
/* Get grouping */
- ret = GetLocaleInfo(pGlobalData->lcid,
- LOCALE_SMONGROUPING,
- szGrouping, MAX_FMT_SIZE);
+ GetLocaleInfo(pGlobalData->lcid,
+ LOCALE_SMONGROUPING,
+ szGrouping, MAX_FMT_SIZE);
/* digit grouping */
cyFmt.NumDigits = 0;
Modified: trunk/reactos/dll/cpl/intl/numbers.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/intl/numbers.c?rev…
==============================================================================
--- trunk/reactos/dll/cpl/intl/numbers.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/intl/numbers.c [iso-8859-1] Sat Sep 10 21:31:09 2011
@@ -116,7 +116,6 @@
TCHAR szFracNum[MAX_SAMPLES_STR_SIZE];
TCHAR szFracCount[MAX_SAMPLES_STR_SIZE];
INT nCBIndex;
- INT nRetCode;
/* Get current number of fractional symbols */
GetLocaleInfo(lcid,
@@ -143,10 +142,10 @@
}
/* Set current item to value from registry */
- nRetCode = SendMessage(GetDlgItem(hwndDlg, IDC_NUMBERSNDIGDEC),
- CB_SETCURSEL,
- (WPARAM)_ttoi(szFracNum),
- (LPARAM)0);
+ SendMessage(GetDlgItem(hwndDlg, IDC_NUMBERSNDIGDEC),
+ CB_SETCURSEL,
+ (WPARAM)_ttoi(szFracNum),
+ (LPARAM)0);
}
/* Init field separator control box */
@@ -325,7 +324,6 @@
TCHAR szNewSample[MAX_SAMPLES_STR_SIZE];
LPTSTR pszResultStr;
INT nCBIndex;
- INT nRetCode;
/* Get current negative numbers format */
GetLocaleInfo(lcid,
@@ -372,10 +370,10 @@
}
/* Set current item to value from registry */
- nRetCode = SendMessage(GetDlgItem(hwndDlg, IDC_NUMBERSNNUMFORMAT),
- CB_SETCURSEL,
- (WPARAM)_ttoi(szNegNumFmt),
- (LPARAM)0);
+ SendMessage(GetDlgItem(hwndDlg, IDC_NUMBERSNNUMFORMAT),
+ CB_SETCURSEL,
+ (WPARAM)_ttoi(szNegNumFmt),
+ (LPARAM)0);
}
/* Init leading zeroes control box */
@@ -386,7 +384,6 @@
TCHAR szNumSep[MAX_SAMPLES_STR_SIZE];
LPTSTR pszResultStr;
INT nCBIndex;
- INT nRetCode;
/* Get current leading zeroes format */
GetLocaleInfo(lcid,
@@ -420,10 +417,10 @@
}
/* Set current item to value from registry */
- nRetCode = SendMessage(GetDlgItem(hwndDlg, IDC_NUMBERSDISPLEADZER),
- CB_SETCURSEL,
- (WPARAM)_ttoi(szLeadNumFmt),
- (LPARAM)0);
+ SendMessage(GetDlgItem(hwndDlg, IDC_NUMBERSDISPLEADZER),
+ CB_SETCURSEL,
+ (WPARAM)_ttoi(szLeadNumFmt),
+ (LPARAM)0);
}
static VOID
Modified: trunk/reactos/dll/cpl/mmsys/sounds.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/mmsys/sounds.c?rev…
==============================================================================
--- trunk/reactos/dll/cpl/mmsys/sounds.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/mmsys/sounds.c [iso-8859-1] Sat Sep 10 21:31:09 2011
@@ -1025,11 +1025,9 @@
{
LVITEM item;
PLABEL_CONTEXT pLabelContext;
- LPPSHNOTIFY lppsn;
TCHAR * ptr;
LPNMHDR lpnm = (LPNMHDR)lParam;
- lppsn = (LPPSHNOTIFY) lParam;
switch(lpnm->code)
{
Modified: trunk/reactos/dll/cpl/sysdm/userprofile.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/sysdm/userprofile.…
==============================================================================
--- trunk/reactos/dll/cpl/sysdm/userprofile.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/sysdm/userprofile.c [iso-8859-1] Sat Sep 10 21:31:09 2011
@@ -66,13 +66,12 @@
LPTSTR lpProfileSid)
{
LV_ITEM lvi;
- INT iItem;
memset(&lvi, 0x00, sizeof(lvi));
lvi.mask = LVIF_TEXT | LVIF_STATE;
lvi.pszText = lpProfileSid;
lvi.state = 0;
- iItem = ListView_InsertItem(hwndListView, &lvi);
+ ListView_InsertItem(hwndListView, &lvi);
}
Modified: trunk/reactos/dll/cpl/usrmgr/groups.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/usrmgr/groups.c?re…
==============================================================================
--- trunk/reactos/dll/cpl/usrmgr/groups.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/usrmgr/groups.c [iso-8859-1] Sat Sep 10 21:31:09 2011
@@ -93,7 +93,6 @@
TCHAR szGroupName[UNLEN];
INT iItem;
HWND hwndLV;
- NET_API_STATUS status;
PLOCALGROUP_INFO_1 pGroupInfo = NULL;
hwndLV = GetDlgItem(hwndDlg, IDC_GROUPS_LIST);
@@ -107,7 +106,7 @@
szGroupName,
UNLEN);
- status = NetLocalGroupGetInfo(NULL, szGroupName, 1, (LPBYTE*)&pGroupInfo);
+ NetLocalGroupGetInfo(NULL, szGroupName, 1, (LPBYTE*)&pGroupInfo);
ListView_SetItemText(hwndLV, iItem, 1,
pGroupInfo->lgrpi1_comment);
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] Sat Sep 10 21:31:09 2011
@@ -602,7 +602,6 @@
TCHAR szUserName[UNLEN];
INT iItem;
HWND hwndLV;
- NET_API_STATUS status;
PUSER_INFO_2 pUserInfo = NULL;
LV_ITEM lvi;
@@ -617,7 +616,7 @@
szUserName,
UNLEN);
- status = NetUserGetInfo(NULL, szUserName, 2, (LPBYTE*)&pUserInfo);
+ NetUserGetInfo(NULL, szUserName, 2, (LPBYTE*)&pUserInfo);
memset(&lvi, 0x00, sizeof(lvi));
lvi.iItem = iItem;
Modified: trunk/reactos/dll/win32/aclui/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/aclui/CMakeLists…
==============================================================================
--- trunk/reactos/dll/win32/aclui/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/aclui/CMakeLists.txt [iso-8859-1] Sat Sep 10 21:31:09 2011
@@ -14,13 +14,9 @@
${CMAKE_CURRENT_BINARY_DIR}/aclui.def)
add_library(aclui SHARED ${SOURCE})
-
+allow_warnings(aclui)
set_module_type(aclui win32dll UNICODE)
-
add_importlib_target(aclui.spec)
-
add_importlibs(aclui user32 gdi32 comctl32 ole32 oleaut32 advapi32 uxtheme msvcrt
kernel32 ntdll)
-
add_pch(aclui precomp.h)
-
add_cd_file(TARGET aclui DESTINATION reactos/system32 FOR all)
Modified: trunk/reactos/dll/win32/advpack/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advpack/CMakeLis…
==============================================================================
--- trunk/reactos/dll/win32/advpack/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advpack/CMakeLists.txt [iso-8859-1] Sat Sep 10 21:31:09 2011
@@ -13,10 +13,8 @@
${CMAKE_CURRENT_BINARY_DIR}/advpack.def)
add_library(advpack SHARED ${SOURCE})
-
+allow_warnings(advpack)
set_module_type(advpack win32dll)
-
target_link_libraries(advpack wine)
-
add_importlibs(advpack ole32 setupapi version advapi32 msvcrt kernel32 ntdll)
add_cd_file(TARGET advpack DESTINATION reactos/system32 FOR all)
Modified: trunk/reactos/dll/win32/beepmidi/beepmidi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/beepmidi/beepmid…
==============================================================================
--- trunk/reactos/dll/win32/beepmidi/beepmidi.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/beepmidi/beepmidi.c [iso-8859-1] Sat Sep 10 21:31:09 2011
@@ -500,7 +500,6 @@
{
/* Start playing the note */
NoteNode* new_node;
- NoteNode* tail_node = NULL;
EnterCriticalSection(&device_lock);
@@ -518,7 +517,6 @@
}
#endif
- tail_node = node;
node = node->next;
}
Modified: trunk/reactos/dll/win32/wshtcpip/wshtcpip.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/wshtcpip/wshtcpi…
==============================================================================
--- trunk/reactos/dll/win32/wshtcpip/wshtcpip.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/wshtcpip/wshtcpip.c [iso-8859-1] Sat Sep 10 21:31:09 2011
@@ -523,7 +523,6 @@
UNICODE_STRING TcpDeviceName = RTL_CONSTANT_STRING(DD_TCP_DEVICE_NAME);
UNICODE_STRING UdpDeviceName = RTL_CONSTANT_STRING(DD_UDP_DEVICE_NAME);
UNICODE_STRING RawDeviceName = RTL_CONSTANT_STRING(DD_RAW_IP_DEVICE_NAME);
- NTSTATUS Status;
DPRINT("WSHOpenSocket2 called\n");
@@ -562,7 +561,7 @@
return WSAENOBUFS;
/* Append the transport device name */
- Status = RtlAppendUnicodeStringToString(TransportDeviceName, &String);
+ RtlAppendUnicodeStringToString(TransportDeviceName, &String);
if (*SocketType == SOCK_RAW) {
/* Append a separator */
@@ -575,7 +574,7 @@
String.Length = 0;
String.MaximumLength = TransportDeviceName->MaximumLength -
TransportDeviceName->Length;
- Status = RtlIntegerToUnicodeString((ULONG)*Protocol, 10, &String);
+ RtlIntegerToUnicodeString((ULONG)*Protocol, 10, &String);
TransportDeviceName->Length += String.Length;
}
Modified: trunk/reactos/drivers/bus/acpi/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/acpi/CMakeList…
==============================================================================
--- trunk/reactos/drivers/bus/acpi/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/drivers/bus/acpi/CMakeLists.txt [iso-8859-1] Sat Sep 10 21:31:09 2011
@@ -142,14 +142,10 @@
buspdo.c
main.c)
+allow_warnings(acpi)
set_module_type(acpi kernelmodedriver)
-
-target_link_libraries(acpi
- wdmguid
- acpica)
-
+target_link_libraries(acpi wdmguid acpica)
add_importlibs(acpi ntoskrnl hal)
-
add_cd_file(TARGET acpi DESTINATION reactos/system32/drivers NO_CAB FOR all)
add_subdirectory(cmbatt)
Modified: trunk/reactos/drivers/bus/pci/fdo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pci/fdo.c?rev=…
==============================================================================
--- trunk/reactos/drivers/bus/pci/fdo.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/bus/pci/fdo.c [iso-8859-1] Sat Sep 10 21:31:09 2011
@@ -469,14 +469,11 @@
IN PIRP Irp,
PIO_STACK_LOCATION IrpSp)
{
- PFDO_DEVICE_EXTENSION DeviceExtension;
NTSTATUS Status;
UNREFERENCED_PARAMETER(Irp);
DPRINT("Called\n");
-
- DeviceExtension = (PFDO_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
if (IrpSp->Parameters.Power.Type == DevicePowerState) {
/* FIXME: Set device power state for the device */
Modified: trunk/reactos/drivers/bus/pci/pdo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pci/pdo.c?rev=…
==============================================================================
--- trunk/reactos/drivers/bus/pci/pdo.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/bus/pci/pdo.c [iso-8859-1] Sat Sep 10 21:31:09 2011
@@ -137,14 +137,12 @@
PIO_STACK_LOCATION IrpSp)
{
PPDO_DEVICE_EXTENSION DeviceExtension;
- PFDO_DEVICE_EXTENSION FdoDeviceExtension;
PPNP_BUS_INFORMATION BusInformation;
UNREFERENCED_PARAMETER(IrpSp);
DPRINT("Called\n");
DeviceExtension = (PPDO_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
- FdoDeviceExtension =
(PFDO_DEVICE_EXTENSION)DeviceExtension->Fdo->DeviceExtension;
BusInformation = ExAllocatePool(PagedPool, sizeof(PNP_BUS_INFORMATION));
Irp->IoStatus.Information = (ULONG_PTR)BusInformation;
if (BusInformation != NULL)
@@ -1337,13 +1335,10 @@
IN PIRP Irp,
PIO_STACK_LOCATION IrpSp)
{
- PPDO_DEVICE_EXTENSION DeviceExtension;
NTSTATUS Status;
UNREFERENCED_PARAMETER(Irp);
DPRINT("Called\n");
-
- DeviceExtension = (PPDO_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
if (IrpSp->Parameters.Power.Type == DevicePowerState) {
Status = STATUS_SUCCESS;
Modified: trunk/reactos/drivers/filesystems/cdfs/finfo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/cdfs/f…
==============================================================================
--- trunk/reactos/drivers/filesystems/cdfs/finfo.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/cdfs/finfo.c [iso-8859-1] Sat Sep 10 21:31:09 2011
@@ -451,7 +451,6 @@
FILE_INFORMATION_CLASS FileInformationClass;
PIO_STACK_LOCATION Stack;
PFILE_OBJECT FileObject;
- PFCB Fcb;
PVOID SystemBuffer;
NTSTATUS Status = STATUS_SUCCESS;
@@ -461,7 +460,6 @@
Stack = IoGetCurrentIrpStackLocation(Irp);
FileInformationClass = Stack->Parameters.SetFile.FileInformationClass;
FileObject = Stack->FileObject;
- Fcb = FileObject->FsContext;
SystemBuffer = Irp->AssociatedIrp.SystemBuffer;
Modified: trunk/reactos/drivers/filesystems/cdfs/rw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/cdfs/r…
==============================================================================
--- trunk/reactos/drivers/filesystems/cdfs/rw.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/cdfs/rw.c [iso-8859-1] Sat Sep 10 21:31:09 2011
@@ -54,7 +54,6 @@
*/
{
NTSTATUS Status = STATUS_SUCCESS;
- PCCB Ccb;
PFCB Fcb;
DPRINT("CdfsReadFile(ReadOffset %lu Length %lu)\n", ReadOffset, Length);
@@ -64,7 +63,6 @@
if (Length == 0)
return(STATUS_SUCCESS);
- Ccb = (PCCB)FileObject->FsContext2;
Fcb = (PFCB)FileObject->FsContext;
if (ReadOffset >= Fcb->Entry.DataLengthL)
Modified: trunk/reactos/drivers/filesystems/fastfat/fat.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat/fat.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat/fat.c [iso-8859-1] Sat Sep 10 21:31:09 2011
@@ -478,7 +478,6 @@
* FUNCTION: Writes a cluster to the FAT12 physical and in-memory tables
*/
{
- ULONG FATsector;
ULONG FATOffset;
PUCHAR CBlock;
PVOID BaseAddress;
@@ -510,7 +509,6 @@
CBlock[FATOffset + 1] = (UCHAR)(NewValue >> 4);
}
/* Write the changed FAT sector(s) to disk */
- FATsector = FATOffset / DeviceExt->FatInfo.BytesPerSector;
CcSetDirtyPinnedData(Context, NULL);
CcUnpinData(Context);
return(STATUS_SUCCESS);
Modified: trunk/reactos/drivers/filesystems/fastfat/rw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat/rw.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat/rw.c [iso-8859-1] Sat Sep 10 21:31:09 2011
@@ -749,7 +749,6 @@
LARGE_INTEGER OldFileSize;
NTSTATUS Status = STATUS_SUCCESS;
ULONG Length = 0;
- ULONG OldAllocationSize;
PVOID Buffer;
ULONG BytesPerSector;
@@ -905,7 +904,6 @@
}
OldFileSize = Fcb->RFCB.FileSize;
- OldAllocationSize = Fcb->RFCB.AllocationSize.u.LowPart;
Buffer = VfatGetUserBuffer(IrpContext->Irp);
if (!Buffer)
Modified: trunk/reactos/drivers/filesystems/msfs/finfo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/msfs/f…
==============================================================================
--- trunk/reactos/drivers/filesystems/msfs/finfo.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/msfs/finfo.c [iso-8859-1] Sat Sep 10 21:31:09 2011
@@ -76,7 +76,6 @@
PIO_STACK_LOCATION IoStack;
FILE_INFORMATION_CLASS FileInformationClass;
PFILE_OBJECT FileObject;
- PMSFS_DEVICE_EXTENSION DeviceExtension;
PMSFS_FCB Fcb;
PMSFS_CCB Ccb;
PVOID SystemBuffer;
@@ -88,7 +87,6 @@
IoStack = IoGetCurrentIrpStackLocation (Irp);
FileInformationClass = IoStack->Parameters.QueryFile.FileInformationClass;
- DeviceExtension = DeviceObject->DeviceExtension;
FileObject = IoStack->FileObject;
Fcb = (PMSFS_FCB)FileObject->FsContext;
Ccb = (PMSFS_CCB)FileObject->FsContext2;
Modified: trunk/reactos/drivers/filesystems/msfs/fsctrl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/msfs/f…
==============================================================================
--- trunk/reactos/drivers/filesystems/msfs/fsctrl.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/msfs/fsctrl.c [iso-8859-1] Sat Sep 10 21:31:09 2011
@@ -23,7 +23,6 @@
PIO_STACK_LOCATION IoStack;
PFILE_OBJECT FileObject;
PMSFS_FCB Fcb;
- PMSFS_CCB Ccb;
NTSTATUS Status;
DPRINT1("MsfsFileSystemControl(DeviceObject %p Irp %p)\n", DeviceObject,
Irp);
@@ -31,7 +30,6 @@
IoStack = IoGetCurrentIrpStackLocation(Irp);
FileObject = IoStack->FileObject;
Fcb = FileObject->FsContext;
- Ccb = FileObject->FsContext2;
DPRINT1("Mailslot name: %wZ\n", &Fcb->Name);
Modified: trunk/reactos/drivers/filesystems/ntfs/fsctl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/f…
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/fsctl.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/fsctl.c [iso-8859-1] Sat Sep 10 21:31:09 2011
@@ -324,7 +324,6 @@
PNTFS_FCB Fcb = NULL;
PNTFS_CCB Ccb = NULL;
PNTFS_VCB Vcb = NULL;
- PVPB Vpb;
NTSTATUS Status;
DPRINT1("NtfsMountVolume() called\n");
@@ -337,7 +336,6 @@
Stack = IoGetCurrentIrpStackLocation(Irp);
DeviceToMount = Stack->Parameters.MountVolume.DeviceObject;
- Vpb = Stack->Parameters.MountVolume.Vpb;
Status = NtfsHasFileSystem(DeviceToMount);
if (!NT_SUCCESS(Status))
Modified: trunk/reactos/drivers/serial/serial/info.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/serial/serial/info…
==============================================================================
--- trunk/reactos/drivers/serial/serial/info.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/serial/serial/info.c [iso-8859-1] Sat Sep 10 21:31:09 2011
@@ -14,14 +14,12 @@
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp)
{
- PSERIAL_DEVICE_EXTENSION DeviceExtension;
PIO_STACK_LOCATION Stack;
PVOID SystemBuffer;
ULONG BufferLength;
ULONG_PTR Information = 0;
NTSTATUS Status;
- DeviceExtension = (PSERIAL_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
Stack = IoGetCurrentIrpStackLocation(Irp);
SystemBuffer = Irp->AssociatedIrp.SystemBuffer;
BufferLength = Stack->Parameters.QueryFile.Length;
Modified: trunk/reactos/drivers/serial/serial/rw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/serial/serial/rw.c…
==============================================================================
--- trunk/reactos/drivers/serial/serial/rw.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/serial/serial/rw.c [iso-8859-1] Sat Sep 10 21:31:09 2011
@@ -29,7 +29,6 @@
PWORKITEM_DATA WorkItemData)
{
PSERIAL_DEVICE_EXTENSION DeviceExtension;
- PUCHAR ComPortBase;
ULONG Length;
PUCHAR Buffer;
UCHAR ReceivedByte;
@@ -44,7 +43,6 @@
ASSERT(WorkItemData);
DeviceExtension = (PSERIAL_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
- ComPortBase = ULongToPtr(DeviceExtension->BaseAddress);
Length = IoGetCurrentIrpStackLocation(Irp)->Parameters.Read.Length;
Buffer = SerialGetUserBuffer(Irp);
@@ -259,7 +257,6 @@
ULONG Length;
ULONG_PTR Information = 0;
PUCHAR Buffer;
- PUCHAR ComPortBase;
KIRQL Irql;
NTSTATUS Status = STATUS_SUCCESS;
@@ -272,7 +269,6 @@
Length = Stack->Parameters.Write.Length;
Buffer = SerialGetUserBuffer(Irp);
DeviceExtension = (PSERIAL_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
- ComPortBase = ULongToPtr(DeviceExtension->BaseAddress);
if (Stack->Parameters.Write.ByteOffset.QuadPart != 0 || Buffer == NULL)
{
Modified: trunk/reactos/drivers/storage/class/cdrom/cdrom.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/class/cdro…
==============================================================================
--- trunk/reactos/drivers/storage/class/cdrom/cdrom.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/class/cdrom/cdrom.c [iso-8859-1] Sat Sep 10 21:31:09
2011
@@ -4361,7 +4361,6 @@
LARGE_INTEGER startingOffset;
ULONG transferBytes;
- ULONG startingSector;
PRAW_READ_INFO rawReadInfo =
(PRAW_READ_INFO)irpStack->Parameters.DeviceIoControl.Type3InputBuffer;
PUCHAR userData = (PUCHAR)Irp->AssociatedIrp.SystemBuffer;
@@ -4415,7 +4414,6 @@
}
startingOffset.QuadPart = rawReadInfo->DiskOffset.QuadPart;
- startingSector = (ULONG)(rawReadInfo->DiskOffset.QuadPart >>
deviceExtension->SectorShift);
transferBytes = rawReadInfo->SectorCount * RAW_SECTOR_SIZE;
if (irpStack->Parameters.DeviceIoControl.OutputBufferLength <
transferBytes) {
@@ -6742,7 +6740,6 @@
PREAD_CAPACITY_DATA capacityBuffer;
PIO_STACK_LOCATION irpStack;
PUCHAR senseBuffer;
- NTSTATUS status;
irp = IoAllocateIrp((CCHAR)(DeviceExtension->DeviceObject->StackSize+1),
FALSE);
@@ -6847,7 +6844,7 @@
IrpToComplete->IoStatus.Status = STATUS_VERIFY_REQUIRED;
IoMarkIrpPending(IrpToComplete);
- status = IoCallDriver(DeviceExtension->PortDeviceObject,
irp);
+ IoCallDriver(DeviceExtension->PortDeviceObject, irp);
//
// status is not checked because the completion routine for this
Modified: trunk/reactos/drivers/storage/ide/uniata/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/ide/uniata…
==============================================================================
--- trunk/reactos/drivers/storage/ide/uniata/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/ide/uniata/CMakeLists.txt [iso-8859-1] Sat Sep 10
21:31:09 2011
@@ -19,6 +19,7 @@
idedma.rc
ros_glue/ros_glue.cpp)
+allow_warnings(uniata)
add_pch(uniata stdafx.h)
set_module_type(uniata kernelmodedriver)
add_importlibs(uniata scsiport ntoskrnl hal)
Modified: trunk/reactos/lib/3rdparty/adns/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/3rdparty/adns/CMakeLis…
==============================================================================
--- trunk/reactos/lib/3rdparty/adns/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/lib/3rdparty/adns/CMakeLists.txt [iso-8859-1] Sat Sep 10 21:31:09 2011
@@ -22,3 +22,4 @@
add_library(adns ${SOURCE})
add_dependencies(adns psdk)
+allow_warnings(adns)
Modified: trunk/reactos/lib/3rdparty/freetype/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/3rdparty/freetype/CMak…
==============================================================================
--- trunk/reactos/lib/3rdparty/freetype/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/lib/3rdparty/freetype/CMakeLists.txt [iso-8859-1] Sat Sep 10 21:31:09
2011
@@ -49,3 +49,4 @@
src/winfonts/winfnt.c)
add_library(freetype ${SOURCE})
+allow_warnings(freetype)
Modified: trunk/reactos/lib/3rdparty/libmpg123/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/3rdparty/libmpg123/CMa…
==============================================================================
--- trunk/reactos/lib/3rdparty/libmpg123/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/lib/3rdparty/libmpg123/CMakeLists.txt [iso-8859-1] Sat Sep 10 21:31:09
2011
@@ -41,3 +41,4 @@
tabinit.c)
add_dependencies(libmpg123 psdk)
+allow_warnings(libmpg123)
Modified: trunk/reactos/lib/fslib/ext2lib/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fslib/ext2lib/CMakeLis…
==============================================================================
--- trunk/reactos/lib/fslib/ext2lib/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/lib/fslib/ext2lib/CMakeLists.txt [iso-8859-1] Sat Sep 10 21:31:09 2011
@@ -12,3 +12,4 @@
add_library(ext2lib ${SOURCE})
add_pch(ext2lib Mke2fs.h)
add_dependencies(ext2lib psdk)
+allow_warnings(ext2lib)