[ros-diffs] [tkreuzer] 44509: Don't C_ASSERT inside a function body. The new definition causes a warning with this.
tkreuzer at svn.reactos.org
tkreuzer at svn.reactos.org
Thu Dec 10 21:22:11 CET 2009
Author: tkreuzer
Date: Thu Dec 10 02:48:07 2009
New Revision: 44509
URL: http://svn.reactos.org/svn/reactos?rev=44509&view=rev
Log:
Don't C_ASSERT inside a function body. The new definition causes a warning with this.
Modified:
branches/ros-amd64-bringup/reactos/ntoskrnl/ke/wait.c
Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/ke/wait.c
URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntoskrnl/ke/wait.c?rev=44509&r1=44508&r2=44509&view=diff
==============================================================================
--- branches/ros-amd64-bringup/reactos/ntoskrnl/ke/wait.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/ntoskrnl/ke/wait.c [iso-8859-1] Thu Dec 10 02:48:07 2009
@@ -117,6 +117,9 @@
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 @@
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++;
More information about the Ros-diffs
mailing list