Author: dgorbachev
Date: Wed Dec 3 11:29:38 2008
New Revision: 37826
URL:
http://svn.reactos.org/svn/reactos?rev=37826&view=rev
Log:
Silence compiler warnings (4/11).
Modified:
trunk/reactos/drivers/base/bootvid/i386/bootvid.c
trunk/reactos/drivers/filesystems/fs_rec/ext2.c
trunk/reactos/drivers/filesystems/fs_rec/fat.c
trunk/reactos/drivers/filesystems/fs_rec/ntfs.c
trunk/reactos/drivers/input/kbdclass/kbdclass.c
trunk/reactos/drivers/input/mouclass/mouclass.c
trunk/reactos/drivers/network/tcpip/datalink/lan.c
trunk/reactos/drivers/serial/serial/misc.c
trunk/reactos/drivers/storage/class/ramdisk/ramdisk.c
trunk/reactos/drivers/storage/port/diskdump/diskdump.c
trunk/reactos/drivers/video/displays/vga/main/enable.c
trunk/reactos/drivers/video/videoprt/agp.c
trunk/reactos/drivers/video/videoprt/ddc.c
Modified: trunk/reactos/drivers/base/bootvid/i386/bootvid.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/base/bootvid/i386/…
==============================================================================
--- trunk/reactos/drivers/base/bootvid/i386/bootvid.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/base/bootvid/i386/bootvid.c [iso-8859-1] Wed Dec 3 11:29:38
2008
@@ -357,7 +357,7 @@
{
ULONG Context = 0;
PHYSICAL_ADDRESS TranslatedAddress;
- PHYSICAL_ADDRESS NullAddress = {{0}};
+ PHYSICAL_ADDRESS NullAddress = {{0, 0}};
ULONG AddressSpace = 1;
BOOLEAN Result;
ULONG_PTR Base;
Modified: trunk/reactos/drivers/filesystems/fs_rec/ext2.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fs_rec…
==============================================================================
--- trunk/reactos/drivers/filesystems/fs_rec/ext2.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fs_rec/ext2.c [iso-8859-1] Wed Dec 3 11:29:38 2008
@@ -32,7 +32,7 @@
PDEVICE_OBJECT MountDevice;
PVOID Bpb = NULL;
ULONG SectorSize;
- LARGE_INTEGER Offset = {{0}};
+ LARGE_INTEGER Offset = {{0, 0}};
BOOLEAN DeviceError = FALSE;
PAGED_CODE();
Modified: trunk/reactos/drivers/filesystems/fs_rec/fat.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fs_rec…
==============================================================================
--- trunk/reactos/drivers/filesystems/fs_rec/fat.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fs_rec/fat.c [iso-8859-1] Wed Dec 3 11:29:38 2008
@@ -104,7 +104,7 @@
PDEVICE_OBJECT MountDevice;
PPACKED_BOOT_SECTOR Bpb = NULL;
ULONG SectorSize;
- LARGE_INTEGER Offset = {{0}};
+ LARGE_INTEGER Offset = {{0, 0}};
BOOLEAN DeviceError = FALSE;
PAGED_CODE();
Modified: trunk/reactos/drivers/filesystems/fs_rec/ntfs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fs_rec…
==============================================================================
--- trunk/reactos/drivers/filesystems/fs_rec/ntfs.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fs_rec/ntfs.c [iso-8859-1] Wed Dec 3 11:29:38 2008
@@ -53,7 +53,7 @@
PDEVICE_OBJECT MountDevice;
PPACKED_BOOT_SECTOR Bpb = NULL;
ULONG SectorSize;
- LARGE_INTEGER Offset = {{0}}, Offset2, Offset3, SectorCount;
+ LARGE_INTEGER Offset = {{0, 0}}, Offset2, Offset3, SectorCount;
PAGED_CODE();
/* Get the I/O Stack and check the function type */
Modified: trunk/reactos/drivers/input/kbdclass/kbdclass.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/input/kbdclass/kbd…
==============================================================================
--- trunk/reactos/drivers/input/kbdclass/kbdclass.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/input/kbdclass/kbdclass.c [iso-8859-1] Wed Dec 3 11:29:38 2008
@@ -845,7 +845,7 @@
{
UNICODE_STRING DeviceMapKeyU =
RTL_CONSTANT_STRING(L"\\REGISTRY\\MACHINE\\HARDWARE\\DEVICEMAP");
PCLASS_DRIVER_EXTENSION DriverExtension;
- UNICODE_STRING PortBaseName = {0, };
+ UNICODE_STRING PortBaseName = { 0, 0, NULL };
PKEY_VALUE_BASIC_INFORMATION KeyValueInformation = NULL;
OBJECT_ATTRIBUTES ObjectAttributes;
HANDLE hDeviceMapKey = (HANDLE)-1;
Modified: trunk/reactos/drivers/input/mouclass/mouclass.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/input/mouclass/mou…
==============================================================================
--- trunk/reactos/drivers/input/mouclass/mouclass.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/input/mouclass/mouclass.c [iso-8859-1] Wed Dec 3 11:29:38 2008
@@ -821,7 +821,7 @@
{
UNICODE_STRING DeviceMapKeyU =
RTL_CONSTANT_STRING(L"\\REGISTRY\\MACHINE\\HARDWARE\\DEVICEMAP");
PCLASS_DRIVER_EXTENSION DriverExtension;
- UNICODE_STRING PortBaseName = {0, };
+ UNICODE_STRING PortBaseName = { 0, 0, NULL };
PKEY_VALUE_BASIC_INFORMATION KeyValueInformation = NULL;
OBJECT_ATTRIBUTES ObjectAttributes;
HANDLE hDeviceMapKey = (HANDLE)-1;
Modified: trunk/reactos/drivers/network/tcpip/datalink/lan.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/tcpip/data…
==============================================================================
--- trunk/reactos/drivers/network/tcpip/datalink/lan.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/tcpip/datalink/lan.c [iso-8859-1] Wed Dec 3 11:29:38
2008
@@ -808,9 +808,9 @@
PUNICODE_STRING TargetKeyName,
PUNICODE_STRING Name,
PUNICODE_STRING DeviceDesc ) {
- UNICODE_STRING RootDevice = { 0 }, LinkageKeyName = { 0 };
- UNICODE_STRING DescKeyName = { 0 }, Linkage = { 0 };
- UNICODE_STRING BackSlash = { 0 };
+ UNICODE_STRING RootDevice = { 0, 0, NULL }, LinkageKeyName = { 0, 0, NULL };
+ UNICODE_STRING DescKeyName = { 0, 0, NULL }, Linkage = { 0, 0, NULL };
+ UNICODE_STRING BackSlash = { 0, 0, NULL };
HANDLE DescKey = NULL, LinkageKey = NULL;
NTSTATUS Status;
@@ -962,7 +962,7 @@
PIP_INTERFACE IF;
NDIS_STATUS NdisStatus;
LLIP_BIND_INFO BindInfo;
- IP_ADDRESS DefaultMask = { 0 };
+ IP_ADDRESS DefaultMask;
ULONG Lookahead = LOOKAHEAD_SIZE;
NTSTATUS Status;
@@ -1012,7 +1012,7 @@
TI_DbgPrint(DEBUG_DATALINK,("Adapter Description: %wZ\n",
&IF->Description));
- DefaultMask.Type = IP_ADDRESS_V4;
+ AddrInitIPv4(&DefaultMask, 0);
IF->Unicast = DefaultMask;
IF->Netmask = DefaultMask;
Modified: trunk/reactos/drivers/serial/serial/misc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/serial/serial/misc…
==============================================================================
--- trunk/reactos/drivers/serial/serial/misc.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/serial/serial/misc.c [iso-8859-1] Wed Dec 3 11:29:38 2008
@@ -186,7 +186,9 @@
if (MSR & SR_MSR_CTS)
KeInsertQueueDpc(&DeviceExtension->SendByteDpc, NULL, NULL);
else
+ {
; /* FIXME: stop transmission */
+ }
Events |= SERIAL_EV_CTS;
}
if (MSR & SR_MSR_DSR_CHANGED)
@@ -194,7 +196,9 @@
if (MSR & SR_MSR_DSR)
KeInsertQueueDpc(&DeviceExtension->ReceivedByteDpc, NULL, NULL);
else
+ {
; /* FIXME: stop reception */
+ }
Events |= SERIAL_EV_DSR;
}
if (MSR & SR_MSR_RI_CHANGED)
Modified: trunk/reactos/drivers/storage/class/ramdisk/ramdisk.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/class/ramd…
==============================================================================
--- trunk/reactos/drivers/storage/class/ramdisk/ramdisk.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/class/ramdisk/ramdisk.c [iso-8859-1] Wed Dec 3 11:29:38
2008
@@ -1199,7 +1199,7 @@
NTSTATUS Status;
PPARTITION_INFORMATION PartitionInfo;
PVOID BaseAddress;
- LARGE_INTEGER Zero = {{0}};
+ LARGE_INTEGER Zero = {{0, 0}};
ULONG Length;
PIO_STACK_LOCATION IoStackLocation;
Modified: trunk/reactos/drivers/storage/port/diskdump/diskdump.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/port/diskd…
==============================================================================
--- trunk/reactos/drivers/storage/port/diskdump/diskdump.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/port/diskdump/diskdump.c [iso-8859-1] Wed Dec 3
11:29:38 2008
@@ -101,16 +101,16 @@
{"ScsiPortConvertUlongToPhysicalAddress", 3, NULL, NULL},
{"ScsiPortFreeDeviceBase", 5, NULL, DiskDumpScsiInvalid},
{"ScsiPortGetBusData", 6, NULL, DiskDumpScsiInvalid},
- {"ScsiPortGetDeviceBase", 7, DiskDumpScsiInvalid},
+ {"ScsiPortGetDeviceBase", 7, NULL, DiskDumpScsiInvalid},
{"ScsiPortInitialize", 13, NULL, DiskDumpScsiInvalid},
{"ScsiPortNotification", 17, NULL, _DiskDumpScsiPortNotification},
- {"ScsiPortReadPortBufferUlong", 19, NULL},
- {"ScsiPortReadPortBufferUshort", 20, NULL},
+ {"ScsiPortReadPortBufferUlong", 19, NULL, NULL},
+ {"ScsiPortReadPortBufferUshort", 20, NULL, NULL},
{"ScsiPortReadPortUchar", 21, NULL, NULL},
{"ScsiPortReadPortUshort", 23, NULL, NULL},
{"ScsiPortStallExecution", 31, NULL, NULL},
- {"ScsiPortWritePortBufferUlong", 34, NULL},
- {"ScsiPortWritePortBufferUshort", 35, NULL},
+ {"ScsiPortWritePortBufferUlong", 34, NULL, NULL},
+ {"ScsiPortWritePortBufferUshort", 35, NULL, NULL},
{"ScsiPortWritePortUchar", 36, NULL, NULL},
{"ScsiDebugPrint", 0, NULL, NULL},
};
Modified: trunk/reactos/drivers/video/displays/vga/main/enable.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/displays/vga…
==============================================================================
--- trunk/reactos/drivers/video/displays/vga/main/enable.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/video/displays/vga/main/enable.c [iso-8859-1] Wed Dec 3
11:29:38 2008
@@ -56,7 +56,7 @@
};
static GDIINFO gaulCap = {
- GDI_DRIVER_VERSION,
+ GDI_DRIVER_VERSION, // ulVersion
DT_RASDISPLAY, // ulTechnology
0, // ulHorzSize
0, // ulVertSize
@@ -73,7 +73,7 @@
TC_RA_ABLE | TC_SCROLLBLT, // flTextCaps
6, // ulDACRed
- 6, // ulDACGree
+ 6, // ulDACGreen
6, // ulDACBlue
0x0024, // ulAspectX (one-to-one aspect ratio)
@@ -115,7 +115,18 @@
8, // ulBltAlignment
0, // ulPanningHorzRes
0, // ulPanningVertRes
- };
+
+ 0, // xPanningAlignment
+ 0, // yPanningAlignment
+ 0, // cxHTPat
+ 0, // cyHTPat
+ NULL, // pHTPatA
+ NULL, // pHTPatB
+ NULL, // pHTPatC
+ 0, // flShadeBlend
+ 0, // ulPhysicalPixelCharacteristics
+ 0 // ulPhysicalPixelGamma
+};
// Palette for VGA
@@ -170,7 +181,8 @@
BMF_4BPP, // preferred DIB format
8, // Width of color dither
8, // Height of color dither
- 0 // Default palette to use for this device
+ NULL, // Default palette to use for this device
+ 0 // flGraphicsCaps2
};
BOOL APIENTRY
Modified: trunk/reactos/drivers/video/videoprt/agp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/videoprt/agp…
==============================================================================
--- trunk/reactos/drivers/video/videoprt/agp.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/video/videoprt/agp.c [iso-8859-1] Wed Dec 3 11:29:38 2008
@@ -99,7 +99,7 @@
{
PVIDEO_PORT_DEVICE_EXTENSION DeviceExtension;
PAGP_BUS_INTERFACE_STANDARD AgpBusInterface;
- PHYSICAL_ADDRESS MappingAddr = {{0}};
+ PHYSICAL_ADDRESS MappingAddr = {{0, 0}};
PVIDEO_PORT_AGP_MAPPING AgpMapping;
NTSTATUS Status;
@@ -186,7 +186,7 @@
IN VIDEO_PORT_CACHE_TYPE Caching,
OUT PVOID *PhysicalContext)
{
- PHYSICAL_ADDRESS ZeroAddress = {{0}};
+ PHYSICAL_ADDRESS ZeroAddress = {{0, 0}};
PVIDEO_PORT_DEVICE_EXTENSION DeviceExtension;
PAGP_BUS_INTERFACE_STANDARD AgpBusInterface;
MEMORY_CACHING_TYPE MemCachingType;
Modified: trunk/reactos/drivers/video/videoprt/ddc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/videoprt/ddc…
==============================================================================
--- trunk/reactos/drivers/video/videoprt/ddc.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/video/videoprt/ddc.c [iso-8859-1] Wed Dec 3 11:29:38 2008
@@ -35,7 +35,7 @@
#define WRITE_SDA(state) (i2c->WriteDataLine(HwDeviceExtension, state))
#define WRITE_SCL(state) (i2c->WriteClockLine(HwDeviceExtension, state))
-STATIC LARGE_INTEGER HalfPeriodDelay = { { 70LL } };
+STATIC LARGE_INTEGER HalfPeriodDelay = {{0, 70}};
#define DELAY_HALF() KeDelayExecutionThread(KernelMode, FALSE,
&HalfPeriodDelay)