Silence compiler warnings (10/11).

svn path=/trunk/; revision=37832
This commit is contained in:
Dmitry Gorbachev 2008-12-03 17:37:23 +00:00
parent b3597def85
commit e1f79c3b49
6 changed files with 10 additions and 7 deletions

View file

@ -92,7 +92,7 @@ extern char reactos_arc_strings[32][256];
static VOID static VOID
__StallExecutionProcessor(ULONG Loops) __StallExecutionProcessor(ULONG Loops)
{ {
volatile register unsigned int i; register volatile unsigned int i;
for (i = 0; i < Loops; i++); for (i = 0; i < Loops; i++);
} }

View file

@ -544,11 +544,11 @@ XboxDiskGetDriveGeometry(ULONG DriveNumber, PGEOMETRY Geometry)
} }
else else
{ {
for (i = 15; i >= 0; i--) for (i = 1 << 15; i; i /= 2)
{ {
if (0 != (DrvParms.BytesPerSector & (1 << i))) if (0 != (DrvParms.BytesPerSector & i))
{ {
Geometry->BytesPerSector = 1 << i; Geometry->BytesPerSector = i;
break; break;
} }
} }

View file

@ -258,7 +258,7 @@ static ULONGLONG NtfsReadAttribute(PNTFS_ATTR_CONTEXT Context, ULONGLONG Offset,
{ {
CurrentOffset += DataRunLength * NtfsClusterSize; CurrentOffset += DataRunLength * NtfsClusterSize;
DataRun = NtfsDecodeRun(DataRun, &DataRunOffset, &DataRunLength); DataRun = NtfsDecodeRun(DataRun, &DataRunOffset, &DataRunLength);
if (DataRunLength != -1) if (DataRunLength != (ULONGLONG)-1)
{ {
DataRunStartLCN = LastLCN + DataRunOffset; DataRunStartLCN = LastLCN + DataRunOffset;
LastLCN = DataRunStartLCN; LastLCN = DataRunStartLCN;

View file

@ -919,7 +919,7 @@ DbgPrint(const char *Format, ...)
Length = _vsnprintf(Buffer, 512, Format, ap); Length = _vsnprintf(Buffer, 512, Format, ap);
/* Check if we went past the buffer */ /* Check if we went past the buffer */
if (Length == -1) if (Length == -1U)
{ {
/* Terminate it if we went over-board */ /* Terminate it if we went over-board */
Buffer[sizeof(Buffer) - 1] = '\n'; Buffer[sizeof(Buffer) - 1] = '\n';

View file

@ -99,4 +99,7 @@ const UIVTBL GuiVtbl =
GuiFadeInBackdrop, GuiFadeInBackdrop,
GuiFadeOut, GuiFadeOut,
GuiDisplayMenu,*/ GuiDisplayMenu,*/
NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL
}; };

View file

@ -274,7 +274,7 @@ MempSetupPaging(IN ULONG StartPage,
VOID VOID
MempDisablePages() MempDisablePages()
{ {
int i; ULONG i;
// //
// We need to delete kernel mapping from memory areas which are // We need to delete kernel mapping from memory areas which are