[ros-diffs] [cwittich] 23690: some more msvc warning fixes

cwittich at svn.reactos.org cwittich at svn.reactos.org
Thu Aug 24 19:23:08 CEST 2006


Author: cwittich
Date: Thu Aug 24 21:23:07 2006
New Revision: 23690

URL: http://svn.reactos.org/svn/reactos?rev=23690&view=rev
Log:
some more msvc warning fixes

Modified:
    trunk/reactos/drivers/usb/nt4compat/usbdriver/dmgrdisp.c
    trunk/reactos/drivers/usb/nt4compat/usbdriver/hub.c
    trunk/reactos/drivers/usb/nt4compat/usbdriver/td.c
    trunk/reactos/drivers/usb/nt4compat/usbdriver/uhci.c

Modified: trunk/reactos/drivers/usb/nt4compat/usbdriver/dmgrdisp.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/nt4compat/usbdriver/dmgrdisp.c?rev=23690&r1=23689&r2=23690&view=diff
==============================================================================
--- trunk/reactos/drivers/usb/nt4compat/usbdriver/dmgrdisp.c (original)
+++ trunk/reactos/drivers/usb/nt4compat/usbdriver/dmgrdisp.c Thu Aug 24 21:23:07 2006
@@ -29,6 +29,8 @@
     NTSTATUS status;
     PDEVEXT_HEADER dev_hdr;
 
+    UNREFERENCED_PARAMETER(context);
+
     if (purb == NULL)
         return;
 

Modified: trunk/reactos/drivers/usb/nt4compat/usbdriver/hub.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/nt4compat/usbdriver/hub.c?rev=23690&r1=23689&r2=23690&view=diff
==============================================================================
--- trunk/reactos/drivers/usb/nt4compat/usbdriver/hub.c (original)
+++ trunk/reactos/drivers/usb/nt4compat/usbdriver/hub.c Thu Aug 24 21:23:07 2006
@@ -2272,6 +2272,9 @@
 
     USE_BASIC_NON_PENDING_IRQL;
 
+    UNREFERENCED_PARAMETER(param);
+    UNREFERENCED_PARAMETER(context);
+
     usb_dbg_print(DBGLVL_MAXIMUM, ("dev_mgr_event_select_driver(): pdev=%p event=0x%x\n", pdev, event));
 
     if (pdev == NULL)
@@ -3536,7 +3539,7 @@
     KIRQL old_irql;
     BOOLEAN ret;
     KeAcquireSpinLock(&irp_list->irp_list_lock, &old_irql);
-    ret = (irp_list->irp_free_list_count == MAX_IRP_LIST_SIZE);
+    ret = (BOOLEAN) (irp_list->irp_free_list_count == MAX_IRP_LIST_SIZE);
     KeReleaseSpinLock(&irp_list->irp_list_lock, old_irql);
     return ret;
 }
@@ -3547,7 +3550,7 @@
     KIRQL old_irql;
     BOOLEAN ret;
     KeAcquireSpinLock(&irp_list->irp_list_lock, &old_irql);
-    ret = (irp_list->irp_free_list_count == 0);
+    ret = (BOOLEAN) (irp_list->irp_free_list_count == 0);
     KeReleaseSpinLock(&irp_list->irp_list_lock, old_irql);
     return ret;
 }

Modified: trunk/reactos/drivers/usb/nt4compat/usbdriver/td.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/nt4compat/usbdriver/td.c?rev=23690&r1=23689&r2=23690&view=diff
==============================================================================
--- trunk/reactos/drivers/usb/nt4compat/usbdriver/td.c (original)
+++ trunk/reactos/drivers/usb/nt4compat/usbdriver/td.c Thu Aug 24 21:23:07 2006
@@ -176,7 +176,7 @@
     if (pool == NULL)
         return FALSE;
 
-    return (pool->free_count == 0);
+    return (BOOLEAN) (pool->free_count == 0);
 }
 
 BOOLEAN

Modified: trunk/reactos/drivers/usb/nt4compat/usbdriver/uhci.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/nt4compat/usbdriver/uhci.c?rev=23690&r1=23689&r2=23690&view=diff
==============================================================================
--- trunk/reactos/drivers/usb/nt4compat/usbdriver/uhci.c (original)
+++ trunk/reactos/drivers/usb/nt4compat/usbdriver/uhci.c Thu Aug 24 21:23:07 2006
@@ -1527,6 +1527,7 @@
     USE_BASIC_NON_PENDING_IRQL;
 
     UNREFERENCED_PARAMETER(dpc);
+    UNREFERENCED_PARAMETER(sysarg2);
 
     uhci = (PUHCI_DEV) context;
     if (uhci == NULL)
@@ -3065,7 +3066,7 @@
 
     KeSynchronizeExecution(uhci->pdev_ext->uhci_int, uhci_sync_cancel_urb, &sync_param);
 
-    found = sync_param.ret;
+    found = (BOOLEAN) sync_param.ret;
 
     if (found)
         return USB_STATUS_CANCELING;




More information about the Ros-diffs mailing list