[ros-diffs] [cwittich] 23686: fixed some warnings

cwittich at svn.reactos.org cwittich at svn.reactos.org
Thu Aug 24 18:06:13 CEST 2006


Author: cwittich
Date: Thu Aug 24 20:06:12 2006
New Revision: 23686

URL: http://svn.reactos.org/svn/reactos?rev=23686&view=rev
Log:
fixed some warnings

Modified:
    trunk/reactos/drivers/usb/nt4compat/usbdriver/cbi.c
    trunk/reactos/drivers/usb/nt4compat/usbdriver/compdrv.c
    trunk/reactos/drivers/usb/nt4compat/usbdriver/devmgr.c
    trunk/reactos/drivers/usb/nt4compat/usbdriver/etd.c
    trunk/reactos/drivers/usb/nt4compat/usbdriver/gendrv.c
    trunk/reactos/drivers/usb/nt4compat/usbdriver/hub.c
    trunk/reactos/drivers/usb/nt4compat/usbdriver/umss.c
    trunk/reactos/drivers/usb/nt4compat/usbdriver/usb.c

Modified: trunk/reactos/drivers/usb/nt4compat/usbdriver/cbi.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/nt4compat/usbdriver/cbi.c?rev=23686&r1=23685&r2=23686&view=diff
==============================================================================
--- trunk/reactos/drivers/usb/nt4compat/usbdriver/cbi.c (original)
+++ trunk/reactos/drivers/usb/nt4compat/usbdriver/cbi.c Thu Aug 24 20:06:12 2006
@@ -38,6 +38,8 @@
     PURB purb;
     NTSTATUS status;
 
+    UNREFERENCED_PARAMETER(dir);
+
     purb = usb_alloc_mem(NonPagedPool, sizeof(URB));
     // Build URB for the ADSC command
     UsbBuildVendorRequest(purb,

Modified: trunk/reactos/drivers/usb/nt4compat/usbdriver/compdrv.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/nt4compat/usbdriver/compdrv.c?rev=23686&r1=23685&r2=23686&view=diff
==============================================================================
--- trunk/reactos/drivers/usb/nt4compat/usbdriver/compdrv.c (original)
+++ trunk/reactos/drivers/usb/nt4compat/usbdriver/compdrv.c Thu Aug 24 20:06:12 2006
@@ -66,6 +66,8 @@
 BOOLEAN
 compdev_driver_destroy(PUSB_DEV_MANAGER dev_mgr, PUSB_DRIVER pdriver)
 {
+    UNREFERENCED_PARAMETER(dev_mgr);
+    UNREFERENCED_PARAMETER(pdriver);
     return TRUE;
 }
 
@@ -196,6 +198,10 @@
     PUSB_DEV_MANAGER dev_mgr;
     DEV_HANDLE dev_handle;
 
+    UNREFERENCED_PARAMETER(param);
+    UNREFERENCED_PARAMETER(context);
+    UNREFERENCED_PARAMETER(event);
+
     if (pdev == NULL)
         return;
 

Modified: trunk/reactos/drivers/usb/nt4compat/usbdriver/devmgr.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/nt4compat/usbdriver/devmgr.c?rev=23686&r1=23685&r2=23686&view=diff
==============================================================================
--- trunk/reactos/drivers/usb/nt4compat/usbdriver/devmgr.c (original)
+++ trunk/reactos/drivers/usb/nt4compat/usbdriver/devmgr.c Thu Aug 24 20:06:12 2006
@@ -317,8 +317,9 @@
             continue;
         }
 
-        // usb_dbg_print( DBGLVL_MAXIMUM, ( "dev_mgr_thread(): current element in event list is 0x%x\n", \
-        //                      dbg_count_list( &dev_mgr->event_list ) ) );
+		/*
+         usb_dbg_print( DBGLVL_MAXIMUM, ( "dev_mgr_thread(): current element in event list is 0x%x\n", \
+                              dbg_count_list( &dev_mgr->event_list ) ) ); */
 
         dev_mgr_inited = TRUE;  //since we have post one event, if this statement is executed, dev_mgr_event_init must be called sometime later or earlier
 

Modified: trunk/reactos/drivers/usb/nt4compat/usbdriver/etd.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/nt4compat/usbdriver/etd.c?rev=23686&r1=23685&r2=23686&view=diff
==============================================================================
--- trunk/reactos/drivers/usb/nt4compat/usbdriver/etd.c (original)
+++ trunk/reactos/drivers/usb/nt4compat/usbdriver/etd.c Thu Aug 24 20:06:12 2006
@@ -139,6 +139,8 @@
     PEHCI_QTD pqtd;
     PEHCI_FSTN pfstn;
     PINIT_ELEM_LIST_CONTEXT pinit_ctx;
+
+    UNREFERENCED_PARAMETER(count);
 
     if (plist == NULL || context == NULL)
         return FALSE;
@@ -465,7 +467,7 @@
     if (pool == NULL)
         return TRUE;
     pel = pool->elem_lists[0];
-    return (pool->list_count == 1 && pool->free_count == pel->get_total_count(pel));
+    return (BOOLEAN) (pool->list_count == 1 && pool->free_count == pel->get_total_count(pel));
 }
 
 LONG

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=23686&r1=23685&r2=23686&view=diff
==============================================================================
--- trunk/reactos/drivers/usb/nt4compat/usbdriver/gendrv.c (original)
+++ trunk/reactos/drivers/usb/nt4compat/usbdriver/gendrv.c Thu Aug 24 20:06:12 2006
@@ -287,6 +287,9 @@
     PLIST_ENTRY pthis, pnext;
 
     USE_BASIC_NON_PENDING_IRQL;
+
+    UNREFERENCED_PARAMETER(context);
+    UNREFERENCED_PARAMETER(event);
 
     if (pdev == NULL)
         return FALSE;
@@ -1350,7 +1353,7 @@
     pdev_ext = (PGENDRV_DEVICE_EXTENSION) dev_obj->DeviceExtension;
     pdrvr = pdev_ext->pdriver;
     pdrvr_ext = (PGENDRV_DRVR_EXTENSION) pdrvr->driver_ext;
-    is_if = if_dev(dev_obj);
+    is_if = (BOOLEAN) if_dev(dev_obj);
     if (is_if == FALSE)
         sprintf(dev_name, "\\DosDevices\\gendev%d", (int)pdev_ext->dev_id);
     else

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=23686&r1=23685&r2=23686&view=diff
==============================================================================
--- trunk/reactos/drivers/usb/nt4compat/usbdriver/hub.c (original)
+++ trunk/reactos/drivers/usb/nt4compat/usbdriver/hub.c Thu Aug 24 20:06:12 2006
@@ -182,6 +182,10 @@
 VOID
 event_list_default_process_event(PUSB_DEV pdev, ULONG event, ULONG context, ULONG param)
 {
+    UNREFERENCED_PARAMETER(param);
+    UNREFERENCED_PARAMETER(context);
+    UNREFERENCED_PARAMETER(event);
+    UNREFERENCED_PARAMETER(pdev);
 }
 
 //----------------------------------------------------------
@@ -341,6 +345,8 @@
 BOOLEAN
 hub_driver_init(PUSB_DEV_MANAGER dev_mgr, PUSB_DRIVER pdriver)
 {
+    UNREFERENCED_PARAMETER(dev_mgr);
+
     //init driver structure, no PNP table functions
     pdriver->driver_desc.flags = USB_DRIVER_FLAG_DEV_CAPABLE;
     pdriver->driver_desc.vendor_id = 0xffff;       // USB Vendor ID
@@ -376,6 +382,8 @@
 BOOLEAN
 hub_driver_destroy(PUSB_DEV_MANAGER dev_mgr, PUSB_DRIVER pdriver)
 {
+    UNREFERENCED_PARAMETER(dev_mgr);
+
     pdriver->driver_ext = NULL;
     return TRUE;
 }
@@ -388,6 +396,8 @@
     PUSB_ENDPOINT pendp;
 
     USE_BASIC_NON_PENDING_IRQL;
+
+    UNREFERENCED_PARAMETER(context);
 
     if (purb == NULL)
     {
@@ -744,7 +754,7 @@
     lock_dev(pdev, TRUE);
     dev_mgr = dev_mgr_from_dev(pdev);
     hcd = pdev->hcd;
-    brh = (dev_class(pdev) == USB_DEV_CLASS_ROOT_HUB);
+    brh = (BOOLEAN) (dev_class(pdev) == USB_DEV_CLASS_ROOT_HUB);
 
     if (usb_error(purb->status))
     {
@@ -1002,6 +1012,8 @@
     PUSB_DEV_MANAGER dev_mgr;
 
     USE_NON_PENDING_IRQL;
+
+    UNREFERENCED_PARAMETER(event);
 
     if (pdev == NULL || context == 0 || param == 0)
         return;
@@ -1191,6 +1203,8 @@
 
     USE_NON_PENDING_IRQL;
 
+    UNREFERENCED_PARAMETER(event);
+
     if (pdev == NULL || context == 0 || param == 0)
         return;
 
@@ -1430,6 +1444,8 @@
     UCHAR port_idx;
     PUSB_ENDPOINT pendp;
     PUSB_CTRL_SETUP_PACKET psetup;
+
+    UNREFERENCED_PARAMETER(pcontext);
 
     if (purb == NULL)
         return;
@@ -2482,6 +2498,8 @@
 {
     LONG credit = 0;
 
+    UNREFERENCED_PARAMETER(dev_mgr);
+
     //assume supports all the sub_class are supported if sub_class is zero
     if (pdriver->driver_desc.dev_class == pdev_desc->bDeviceClass)
     {
@@ -3108,6 +3126,8 @@
 BOOLEAN
 hub_stop(PUSB_DEV_MANAGER dev_mgr, DEV_HANDLE dev_handle)
 {
+    UNREFERENCED_PARAMETER(dev_mgr);
+    UNREFERENCED_PARAMETER(dev_handle);
     return TRUE;
 }
 
@@ -3309,6 +3329,7 @@
                           ULONG context,
                           ULONG param)
 {
+    UNREFERENCED_PARAMETER(event);
     hub_clear_tt_buffer(pdev, *((PURB_HS_PIPE_CONTENT) & context), (UCHAR) param);
     return;
 }

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=23686&r1=23685&r2=23686&view=diff
==============================================================================
--- trunk/reactos/drivers/usb/nt4compat/usbdriver/umss.c (original)
+++ trunk/reactos/drivers/usb/nt4compat/usbdriver/umss.c Thu Aug 24 20:06:12 2006
@@ -630,6 +630,8 @@
 BOOLEAN
 umss_stop(PUSB_DEV_MANAGER dev_mgr, DEV_HANDLE dev_handle)
 {
+    UNREFERENCED_PARAMETER(dev_handle);
+    UNREFERENCED_PARAMETER(dev_mgr);
     return TRUE;
 }
 
@@ -1766,6 +1768,8 @@
     NTSTATUS status;
     UNICODE_STRING unicode_string;
 
+    UNREFERENCED_PARAMETER(context);
+
     //
     // let's load the class driver
     //
@@ -1852,6 +1856,8 @@
     PUMSS_DRVR_EXTENSION drvr_ext;
     ULONG if_idx;
     USE_BASIC_NON_PENDING_IRQL;
+
+    UNREFERENCED_PARAMETER(dev_mgr);
 
     if_idx = if_idx_from_handle(if_handle);
     if (if_idx >= 4)            // max interfaces per config supports. defined in td.h

Modified: trunk/reactos/drivers/usb/nt4compat/usbdriver/usb.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/nt4compat/usbdriver/usb.c?rev=23686&r1=23685&r2=23686&view=diff
==============================================================================
--- trunk/reactos/drivers/usb/nt4compat/usbdriver/usb.c (original)
+++ trunk/reactos/drivers/usb/nt4compat/usbdriver/usb.c Thu Aug 24 20:06:12 2006
@@ -794,6 +794,8 @@
 
     USE_BASIC_NON_PENDING_IRQL;
 
+    UNREFERENCED_PARAMETER(context);
+
     if (purb == NULL)
     {
         return;
@@ -1260,6 +1262,8 @@
 
     USE_BASIC_NON_PENDING_IRQL;
 
+    UNREFERENCED_PARAMETER(context);
+
     if (purb == NULL)
         return;
 




More information about the Ros-diffs mailing list