- Fix a thousand warnings
[reactos.git] / reactos / include / ndk / extypes.h
index 618580e..0833f32 100644 (file)
@@ -470,6 +470,16 @@ typedef struct _EX_PUSH_LOCK
 //
 // Executive Pushlock Wait Block
 //
+
+//
+// The wait block has to be properly aligned
+// on a non-checked build even if the debug data isn't there.
+//
+#if defined(_MSC_VER)
+#pragma warning(push)
+#pragma warning(disable:4324)
+#endif
+
 typedef __ALIGNED(16) struct _EX_PUSH_LOCK_WAIT_BLOCK
 {
     union
@@ -490,6 +500,10 @@ typedef __ALIGNED(16) struct _EX_PUSH_LOCK_WAIT_BLOCK
 #endif
 } EX_PUSH_LOCK_WAIT_BLOCK, *PEX_PUSH_LOCK_WAIT_BLOCK;
 
+#if defined(_MSC_VER)
+#pragma warning(pop)
+#endif
+
 //
 // Callback Object
 //