- Fix a thousand warnings
authorStefan Ginsberg <stefanginsberg@gmail.com>
Fri, 11 Sep 2015 18:02:58 +0000 (18:02 +0000)
committerStefan Ginsberg <stefanginsberg@gmail.com>
Fri, 11 Sep 2015 18:02:58 +0000 (18:02 +0000)
svn path=/trunk/; revision=69185

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
 //