[ros-diffs] [tfaber] 55129: [DDK/XDK] - Disable VS11 warning about cast between different function classes (IO_DPC_ROUTINE to KDEFERRED_ROUTINE) where needed

tfaber at svn.reactos.org tfaber at svn.reactos.org
Mon Jan 23 19:58:06 UTC 2012


Author: tfaber
Date: Mon Jan 23 19:58:06 2012
New Revision: 55129

URL: http://svn.reactos.org/svn/reactos?rev=55129&view=rev
Log:
[DDK/XDK]
- Disable VS11 warning about cast between different function classes (IO_DPC_ROUTINE to KDEFERRED_ROUTINE) where needed

Modified:
    trunk/reactos/include/ddk/wdm.h
    trunk/reactos/include/xdk/iofuncs.h

Modified: trunk/reactos/include/ddk/wdm.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/wdm.h?rev=55129&r1=55128&r2=55129&view=diff
==============================================================================
--- trunk/reactos/include/ddk/wdm.h [iso-8859-1] (original)
+++ trunk/reactos/include/ddk/wdm.h [iso-8859-1] Mon Jan 23 19:58:06 2012
@@ -13763,9 +13763,16 @@
   _In_ PDEVICE_OBJECT DeviceObject,
   _In_ PIO_DPC_ROUTINE DpcRoutine)
 {
+#ifdef _MSC_VER
+#pragma warning(push)
+#pragma warning(disable:28024)
+#endif
   KeInitializeDpc(&DeviceObject->Dpc,
                   (PKDEFERRED_ROUTINE) DpcRoutine,
                   DeviceObject);
+#ifdef _MSC_VER
+#pragma warning(pop)
+#endif
 }
 
 #define DEVICE_INTERFACE_INCLUDE_NONACTIVE 0x00000001
@@ -13821,6 +13828,7 @@
 {
 #ifdef _MSC_VER
 #pragma warning(push)
+#pragma warning(disable:28024)
 #pragma warning(disable:28128)
 #endif
     KeInitializeThreadedDpc(&DeviceObject->Dpc,

Modified: trunk/reactos/include/xdk/iofuncs.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/xdk/iofuncs.h?rev=55129&r1=55128&r2=55129&view=diff
==============================================================================
--- trunk/reactos/include/xdk/iofuncs.h [iso-8859-1] (original)
+++ trunk/reactos/include/xdk/iofuncs.h [iso-8859-1] Mon Jan 23 19:58:06 2012
@@ -2793,9 +2793,16 @@
   _In_ PDEVICE_OBJECT DeviceObject,
   _In_ PIO_DPC_ROUTINE DpcRoutine)
 {
+#ifdef _MSC_VER
+#pragma warning(push)
+#pragma warning(disable:28024)
+#endif
   KeInitializeDpc(&DeviceObject->Dpc,
                   (PKDEFERRED_ROUTINE) DpcRoutine,
                   DeviceObject);
+#ifdef _MSC_VER
+#pragma warning(pop)
+#endif
 }
 
 #define DEVICE_INTERFACE_INCLUDE_NONACTIVE 0x00000001
@@ -2851,6 +2858,7 @@
 {
 #ifdef _MSC_VER
 #pragma warning(push)
+#pragma warning(disable:28024)
 #pragma warning(disable:28128)
 #endif
     KeInitializeThreadedDpc(&DeviceObject->Dpc,




More information about the Ros-diffs mailing list