mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 08:17:09 +08:00
- disable -Werror for lib/mesa32 to get it to compile with GCC4, however, an upgrade to 6.2.1 would solve these problems
- fixed a few more warnings, the the tree should now fully compile and work with GCC4 svn path=/trunk/; revision=15198
This commit is contained in:
@@ -54,6 +54,8 @@ VOID TIME_SYNCHRONIZE(struct time_conv *data)
|
||||
tmp.tv_usec-=(LONG)((PTime.QuadPart%TimeFreq.QuadPart)*1000000/TimeFreq.QuadPart);
|
||||
#else
|
||||
// TODO FIXME:
|
||||
tmp.tv_sec = 0;
|
||||
tmp.tv_usec = 0;
|
||||
#endif
|
||||
if (tmp.tv_usec<0) {
|
||||
tmp.tv_sec--;
|
||||
|
||||
@@ -2070,6 +2070,9 @@ AtapiReadWrite(PATAPI_MINIPORT_EXTENSION DeviceExtension,
|
||||
SectorNumber[0] = StartingSector & 0xff;
|
||||
CylinderLow[0] = (StartingSector >> 8) & 0xff;
|
||||
CylinderHigh[0] = (StartingSector >> 16) & 0xff;
|
||||
SectorNumber[1] = 0;
|
||||
CylinderLow[1] = 0;
|
||||
CylinderHigh[1] = 0;
|
||||
DrvHead = ((StartingSector >> 24) & 0x0f) |
|
||||
(Srb->TargetId ? IDE_DH_DRV1 : 0) |
|
||||
IDE_DH_LBA;
|
||||
@@ -2092,6 +2095,9 @@ AtapiReadWrite(PATAPI_MINIPORT_EXTENSION DeviceExtension,
|
||||
StartingSector /= DeviceParams->LogicalHeads;
|
||||
CylinderLow[0] = StartingSector & 0xff;
|
||||
CylinderHigh[0] = StartingSector >> 8;
|
||||
SectorNumber[1] = 0;
|
||||
CylinderLow[1] = 0;
|
||||
CylinderHigh[1] = 0;
|
||||
|
||||
DPRINT("%s:BUS=%04x:DRV=%d:LBA=0:CH=%02x:CL=%02x:HD=%01x:SN=%02x:SC=%02x:CM=%02x\n",
|
||||
(Srb->SrbFlags & SRB_FLAGS_DATA_IN) ? "READ" : "WRITE",
|
||||
|
||||
@@ -1898,7 +1898,7 @@ ScsiDiskUpdateFixedDiskGeometry(IN PDEVICE_EXTENSION DeviceExtension)
|
||||
UNICODE_STRING ValueName;
|
||||
HANDLE SystemKey;
|
||||
HANDLE BusKey;
|
||||
ULONG DiskNumber;
|
||||
ULONG DiskNumber = 0;
|
||||
ULONG Length;
|
||||
#if 0
|
||||
ULONG i;
|
||||
|
||||
@@ -245,7 +245,7 @@ TARGET_NAME = mesa32
|
||||
|
||||
TARGET_BASE = $(TARGET_BASE_LIB_MESA32)
|
||||
|
||||
TARGET_CFLAGS = -D__USE_W32API -Wall -Werror $(MESA_CFLAGS) $(MESA_INCLUDE_DIRS)
|
||||
TARGET_CFLAGS = -D__USE_W32API -Wall $(MESA_CFLAGS) $(MESA_INCLUDE_DIRS)
|
||||
|
||||
TARGET_ASFLAGS = $(TARGET_CFLAGS)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user