[ros-diffs] [hpoussin] 23689: Fix all warnings detected by gcc 4.2 Patch by Thomas Weidenmueller

hpoussin at svn.reactos.org hpoussin at svn.reactos.org
Thu Aug 24 18:58:13 CEST 2006


Author: hpoussin
Date: Thu Aug 24 20:58:12 2006
New Revision: 23689

URL: http://svn.reactos.org/svn/reactos?rev=23689&view=rev
Log:
Fix all warnings detected by gcc 4.2
Patch by Thomas Weidenmueller

Modified:
    trunk/reactos/drivers/usb/nt4compat/usbdriver/bulkonly.c
    trunk/reactos/drivers/usb/nt4compat/usbdriver/devmgr.h
    trunk/reactos/drivers/usb/nt4compat/usbdriver/gendrv.c
    trunk/reactos/drivers/usb/nt4compat/usbdriver/umss.c

Modified: trunk/reactos/drivers/usb/nt4compat/usbdriver/bulkonly.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/nt4compat/usbdriver/bulkonly.c?rev=23689&r1=23688&r2=23689&view=diff
==============================================================================
--- trunk/reactos/drivers/usb/nt4compat/usbdriver/bulkonly.c (original)
+++ trunk/reactos/drivers/usb/nt4compat/usbdriver/bulkonly.c Thu Aug 24 20:58:12 2006
@@ -605,7 +605,7 @@
 umss_bulkonly_get_maxlun(IN PUMSS_DEVICE_EXTENSION pdev_ext)
 {
     PURB purb = NULL;
-    CHAR max_lun;
+    UCHAR max_lun;
     NTSTATUS status;
 
     purb = usb_alloc_mem(NonPagedPool, sizeof(URB));

Modified: trunk/reactos/drivers/usb/nt4compat/usbdriver/devmgr.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/nt4compat/usbdriver/devmgr.h?rev=23689&r1=23688&r2=23689&view=diff
==============================================================================
--- trunk/reactos/drivers/usb/nt4compat/usbdriver/devmgr.h (original)
+++ trunk/reactos/drivers/usb/nt4compat/usbdriver/devmgr.h Thu Aug 24 20:58:12 2006
@@ -42,7 +42,7 @@
 	BYTE if_protocol;							// Interface Protocol
 	
 	// Driver Info	
-	PBYTE driver_name;							// Driver name for Name Registry
+	const char *driver_name;					// Driver name for Name Registry
 	BYTE dev_class;								// Device Class (from SampleStorageDeviceID.h)
 	BYTE dev_sub_class;							// Device Subclass
 	BYTE dev_protocol;							// Protocol Info.

Modified: trunk/reactos/drivers/usb/nt4compat/usbdriver/gendrv.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/nt4compat/usbdriver/gendrv.c?rev=23689&r1=23688&r2=23689&view=diff
==============================================================================
--- trunk/reactos/drivers/usb/nt4compat/usbdriver/gendrv.c (original)
+++ trunk/reactos/drivers/usb/nt4compat/usbdriver/gendrv.c Thu Aug 24 20:58:12 2006
@@ -1343,7 +1343,7 @@
     BOOLEAN is_if;
     PUSB_DRIVER pdrvr;
     PGENDRV_DEVICE_EXTENSION pdev_ext;
-    UCHAR dev_name[64];
+    CHAR dev_name[64];
     STRING string;
     UNICODE_STRING symb_link;
     PGENDRV_DRVR_EXTENSION pdrvr_ext;
@@ -1579,7 +1579,7 @@
     }
     else
     {
-        IoSetCancelRoutine(irp, NULL);
+        (void)IoSetCancelRoutine(irp, NULL);
     }
     IoReleaseCancelSpinLock(old_irql);
 

Modified: trunk/reactos/drivers/usb/nt4compat/usbdriver/umss.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/nt4compat/usbdriver/umss.c?rev=23689&r1=23688&r2=23689&view=diff
==============================================================================
--- trunk/reactos/drivers/usb/nt4compat/usbdriver/umss.c (original)
+++ trunk/reactos/drivers/usb/nt4compat/usbdriver/umss.c Thu Aug 24 20:58:12 2006
@@ -86,7 +86,7 @@
     // and upper driver use this to register itself
     // with umss driver for future notification of
     // pnp event. 2004-03-22 23:12:41
-    UCHAR dev_name[64];
+    CHAR dev_name[64];
     STRING string;
     NTSTATUS status;
     PDEVICE_OBJECT pdev;
@@ -136,7 +136,7 @@
 BOOLEAN
 umss_delete_port_device(PDEVICE_OBJECT dev_obj)
 {
-    UCHAR dev_name[64];
+    CHAR dev_name[64];
     STRING string;
     UNICODE_STRING symb_link;
 
@@ -305,7 +305,7 @@
 umss_create_device(PUSB_DEV_MANAGER dev_mgr, PUSB_DRIVER umss_drvr, DEV_HANDLE dev_handle, BOOLEAN is_if)
 {
 
-    UCHAR dev_name[64], dev_id;
+    CHAR dev_name[64], dev_id;
     STRING string;
     NTSTATUS status;
     PDEVICE_OBJECT pdev;
@@ -708,7 +708,7 @@
 BOOLEAN
 umss_delete_device(PUSB_DEV_MANAGER dev_mgr, PUSB_DRIVER pdrvr, PDEVICE_OBJECT dev_obj, BOOLEAN is_if)
 {
-    UCHAR dev_name[64];
+    CHAR dev_name[64];
     STRING string;
     UNICODE_STRING symb_link;
     PUMSS_DEVICE_EXTENSION pdev_ext;




More information about the Ros-diffs mailing list