mirror of
https://github.com/reactos/reactos.git
synced 2025-05-19 00:54:18 +00:00
Fix more unused-but-set warnings.
svn path=/trunk/; revision=53759
This commit is contained in:
parent
5732c93800
commit
a60242cfe7
10 changed files with 17 additions and 12 deletions
|
@ -1089,9 +1089,9 @@ DlgProc(HWND hDlg,
|
||||||
|
|
||||||
case WM_NOTIFY:
|
case WM_NOTIFY:
|
||||||
{
|
{
|
||||||
INT idctrl;
|
//INT idctrl;
|
||||||
LPNMHDR pnmh;
|
LPNMHDR pnmh;
|
||||||
idctrl = (int)wParam;
|
//idctrl = (int)wParam;
|
||||||
pnmh = (LPNMHDR)lParam;
|
pnmh = (LPNMHDR)lParam;
|
||||||
if (//(pnmh->hwndFrom == pInfo->hSelf) &&
|
if (//(pnmh->hwndFrom == pInfo->hSelf) &&
|
||||||
(pnmh->idFrom == IDC_TAB) &&
|
(pnmh->idFrom == IDC_TAB) &&
|
||||||
|
|
|
@ -943,6 +943,7 @@ process_bmpcache(STREAM s)
|
||||||
in_uint8p(s, data, size);
|
in_uint8p(s, data, size);
|
||||||
|
|
||||||
DEBUG(("BMPCACHE(cx=%d,cy=%d,id=%d,idx=%d,bpp=%d,size=%d,pad1=%d,bufsize=%d,pad2=%d,rs=%d,fs=%d)\n", width, height, cache_id, cache_idx, bpp, size, pad1, bufsize, pad2, row_size, final_size));
|
DEBUG(("BMPCACHE(cx=%d,cy=%d,id=%d,idx=%d,bpp=%d,size=%d,pad1=%d,bufsize=%d,pad2=%d,rs=%d,fs=%d)\n", width, height, cache_id, cache_idx, bpp, size, pad1, bufsize, pad2, row_size, final_size));
|
||||||
|
(void)pad1; (void)pad2;
|
||||||
|
|
||||||
bmpdata = (uint8 *) xmalloc(width * height * Bpp);
|
bmpdata = (uint8 *) xmalloc(width * height * Bpp);
|
||||||
|
|
||||||
|
|
|
@ -169,14 +169,16 @@ CenterWindow(HWND hWnd)
|
||||||
static BOOL
|
static BOOL
|
||||||
IsVMwareCDInDrive(WCHAR *Drv)
|
IsVMwareCDInDrive(WCHAR *Drv)
|
||||||
{
|
{
|
||||||
|
#if CHECKDRIVETYPE
|
||||||
static WCHAR Drive[4] = L"X:\\";
|
static WCHAR Drive[4] = L"X:\\";
|
||||||
|
#endif
|
||||||
WCHAR Current;
|
WCHAR Current;
|
||||||
|
|
||||||
*Drv = L'\0';
|
*Drv = L'\0';
|
||||||
for(Current = 'C'; Current <= 'Z'; Current++)
|
for(Current = 'C'; Current <= 'Z'; Current++)
|
||||||
{
|
{
|
||||||
Drive[0] = Current;
|
|
||||||
#if CHECKDRIVETYPE
|
#if CHECKDRIVETYPE
|
||||||
|
Drive[0] = Current;
|
||||||
if(GetDriveType(Drive) == DRIVE_CDROM)
|
if(GetDriveType(Drive) == DRIVE_CDROM)
|
||||||
{
|
{
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -44,6 +44,7 @@ CsrProbeForRead(IN PVOID Address,
|
||||||
Data = *Pointer;
|
Data = *Pointer;
|
||||||
Pointer = (PUCHAR)((ULONG)Address + Length -1);
|
Pointer = (PUCHAR)((ULONG)Address + Length -1);
|
||||||
Data = *Pointer;
|
Data = *Pointer;
|
||||||
|
(void)Data;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -45,6 +45,7 @@ list(APPEND SOURCE
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/browseui.def)
|
${CMAKE_CURRENT_BINARY_DIR}/browseui.def)
|
||||||
|
|
||||||
add_library(browseui SHARED ${SOURCE})
|
add_library(browseui SHARED ${SOURCE})
|
||||||
|
allow_warnings(browseui)
|
||||||
set_module_type(browseui win32dll UNICODE)
|
set_module_type(browseui win32dll UNICODE)
|
||||||
|
|
||||||
target_link_libraries(browseui
|
target_link_libraries(browseui
|
||||||
|
|
|
@ -74,7 +74,7 @@ list(APPEND SOURCE
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/shell32.def)
|
${CMAKE_CURRENT_BINARY_DIR}/shell32.def)
|
||||||
|
|
||||||
add_library(shell32 SHARED ${SOURCE})
|
add_library(shell32 SHARED ${SOURCE})
|
||||||
|
allow_warnings(shell32)
|
||||||
set_module_type(shell32 win32dll UNICODE)
|
set_module_type(shell32 win32dll UNICODE)
|
||||||
|
|
||||||
target_link_libraries(shell32
|
target_link_libraries(shell32
|
||||||
|
|
|
@ -783,10 +783,10 @@ IoStreamingThread(
|
||||||
LPVOID lpParameter)
|
LPVOID lpParameter)
|
||||||
{
|
{
|
||||||
DWORD Length;
|
DWORD Length;
|
||||||
MMRESULT Result;
|
//MMRESULT Result;
|
||||||
LPIO_PACKET Packet = (LPIO_PACKET)lpParameter;
|
LPIO_PACKET Packet = (LPIO_PACKET)lpParameter;
|
||||||
|
|
||||||
Result = SyncOverlappedDeviceIoControl(Packet->hDevice,
|
/*Result = */ SyncOverlappedDeviceIoControl(Packet->hDevice,
|
||||||
Packet->IoCtl,
|
Packet->IoCtl,
|
||||||
NULL,
|
NULL,
|
||||||
0,
|
0,
|
||||||
|
|
|
@ -878,13 +878,13 @@ SynchronizedDMusMPUWrite
|
||||||
ASSERT(context->BytesRead);
|
ASSERT(context->BytesRead);
|
||||||
|
|
||||||
PUCHAR pChar = PUCHAR(context->BufferAddress);
|
PUCHAR pChar = PUCHAR(context->BufferAddress);
|
||||||
NTSTATUS ntStatus,readStatus;
|
NTSTATUS ntStatus; // , readStatus
|
||||||
ntStatus = STATUS_SUCCESS;
|
ntStatus = STATUS_SUCCESS;
|
||||||
//
|
//
|
||||||
// while we're not there yet, and
|
// while we're not there yet, and
|
||||||
// while we don't have to wait on an aligned byte (including 0)
|
// while we don't have to wait on an aligned byte (including 0)
|
||||||
// (we never wait on a byte. Better to come back later)
|
// (we never wait on a byte. Better to come back later)
|
||||||
readStatus = DMusMPUInterruptServiceRoutine(InterruptSync,PVOID(context->Miniport));
|
/*readStatus = */ DMusMPUInterruptServiceRoutine(InterruptSync,PVOID(context->Miniport));
|
||||||
while ( (*(context->BytesRead) < context->Length)
|
while ( (*(context->BytesRead) < context->Length)
|
||||||
&& ( TryMPU(context->PortBase)
|
&& ( TryMPU(context->PortBase)
|
||||||
|| (*(context->BytesRead)%3)
|
|| (*(context->BytesRead)%3)
|
||||||
|
@ -903,7 +903,7 @@ SynchronizedDMusMPUWrite
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
readStatus = DMusMPUInterruptServiceRoutine(InterruptSync,PVOID(context->Miniport));
|
/*readStatus = */ DMusMPUInterruptServiceRoutine(InterruptSync,PVOID(context->Miniport));
|
||||||
return ntStatus;
|
return ntStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -79,7 +79,7 @@
|
||||||
#define SND_ERR(...) do {} while ( 0 )
|
#define SND_ERR(...) do {} while ( 0 )
|
||||||
#define SND_WARN(...) do {} while ( 0 )
|
#define SND_WARN(...) do {} while ( 0 )
|
||||||
#define SND_TRACE(...) do {} while ( 0 )
|
#define SND_TRACE(...) do {} while ( 0 )
|
||||||
#define SND_ASSERT(condition) do {} while ( 0 )
|
#define SND_ASSERT(condition) do {(void)(condition);} while ( 0 )
|
||||||
#define DUMP_WAVEHDR_QUEUE(condition) do {} while ( 0 )
|
#define DUMP_WAVEHDR_QUEUE(condition) do {} while ( 0 )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -470,14 +470,14 @@ void _SEH_FASTCALL _SEHEnterFrame_f(_SEHPortableFrame_t * frame)
|
||||||
|
|
||||||
void _SEH_FASTCALL _SEHLeaveFrame_f(void)
|
void _SEH_FASTCALL _SEHLeaveFrame_f(void)
|
||||||
{
|
{
|
||||||
_SEHPortableFrame_t * frame;
|
/* _SEHPortableFrame_t * frame;
|
||||||
|
|
||||||
frame = _SEH_CONTAINING_RECORD
|
frame = _SEH_CONTAINING_RECORD
|
||||||
(
|
(
|
||||||
_SEHCurrentRegistration(),
|
_SEHCurrentRegistration(),
|
||||||
_SEHPortableFrame_t,
|
_SEHPortableFrame_t,
|
||||||
SPF_Registration
|
SPF_Registration
|
||||||
);
|
); */
|
||||||
|
|
||||||
/* ASSERT(frame); */
|
/* ASSERT(frame); */
|
||||||
/* ASSERT(frame->SPF_TopTryLevel == NULL) */
|
/* ASSERT(frame->SPF_TopTryLevel == NULL) */
|
||||||
|
|
Loading…
Reference in a new issue