Don't C_ASSERT inside a function body. The new definition causes a warning with this.
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Thu, 10 Dec 2009 01:48:07 +0000 (01:48 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Thu, 10 Dec 2009 01:48:07 +0000 (01:48 +0000)
svn path=/branches/ros-amd64-bringup/; revision=44509

reactos/ntoskrnl/ke/wait.c

index 74c960c..4e70fc3 100644 (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++;