mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-28 12:23:28 +00:00
[NTOSKRNL]
Fix a warning for MSVC, stub __builtin_expect svn path=/branches/cmake-bringup/; revision=49601
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#endif
|
||||
#elif _MSC_VER
|
||||
#define UNREACHABLE __assume(0)
|
||||
#define __builtin_expect(a,b) (a)
|
||||
#else
|
||||
#define UNREACHABLE
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user