mirror of
https://github.com/reactos/reactos.git
synced 2024-08-04 02:20:54 +00:00
[NTOSKRNL]
Fix a warning for MSVC, stub __builtin_expect svn path=/branches/cmake-bringup/; revision=49601
This commit is contained in:
parent
1c7fc49e5f
commit
ac8a48c91f
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue