mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 04:13:35 +00:00
Don't C_ASSERT inside a function body. The new definition causes a warning with this.
svn path=/branches/ros-amd64-bringup/; revision=44509
This commit is contained in:
@@ -117,6 +117,9 @@ KiAcquireFastMutex(IN PFAST_MUTEX FastMutex)
|
||||
NULL);
|
||||
}
|
||||
|
||||
/* We depend on these bits being just right */
|
||||
C_ASSERT((GM_LOCK_WAITER_WOKEN * 2) == GM_LOCK_WAITER_INC);
|
||||
|
||||
VOID
|
||||
FASTCALL
|
||||
KiAcquireGuardedMutex(IN OUT PKGUARDED_MUTEX GuardedMutex)
|
||||
@@ -124,9 +127,6 @@ KiAcquireGuardedMutex(IN OUT PKGUARDED_MUTEX GuardedMutex)
|
||||
ULONG BitsToRemove, BitsToAdd;
|
||||
LONG OldValue, NewValue;
|
||||
|
||||
/* We depend on these bits being just right */
|
||||
C_ASSERT((GM_LOCK_WAITER_WOKEN * 2) == GM_LOCK_WAITER_INC);
|
||||
|
||||
/* Increase the contention count */
|
||||
GuardedMutex->Contention++;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user