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:
Timo Kreuzer
2009-12-10 01:48:07 +00:00
parent ec3e6b9382
commit 74ce61800e
+3 -3
View File
@@ -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++;