[NTOSKRNL]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Mon, 15 Nov 2010 22:06:01 +0000 (22:06 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Mon, 15 Nov 2010 22:06:01 +0000 (22:06 +0000)
Fix a warning for MSVC, stub __builtin_expect

svn path=/branches/cmake-bringup/; revision=49601

ntoskrnl/include/internal/ex.h
ntoskrnl/include/internal/trap_x.h

index 1c73035..7666e69 100644 (file)
@@ -1149,7 +1149,7 @@ ExReleasePushLockExclusive(PEX_PUSH_LOCK PushLock)
 
     /* Unlock the pushlock */
     OldValue.Value = InterlockedExchangeAddSizeT((PSIZE_T)PushLock,
-                                                 -(SIZE_T)EX_PUSH_LOCK_LOCK);
+                                                 -(SSIZE_T)EX_PUSH_LOCK_LOCK);
 
     /* Sanity checks */
     ASSERT(OldValue.Locked);
index 5ead640..09d17ed 100644 (file)
@@ -21,6 +21,7 @@
 #endif
 #elif _MSC_VER
 #define UNREACHABLE __assume(0)
+#define __builtin_expect(a,b) (a)
 #else
 #define UNREACHABLE
 #endif