Author: tkreuzer Date: Mon Nov 15 22:06:01 2010 New Revision: 49601
URL: http://svn.reactos.org/svn/reactos?rev=49601&view=rev Log: [NTOSKRNL] Fix a warning for MSVC, stub __builtin_expect
Modified: branches/cmake-bringup/ntoskrnl/include/internal/ex.h branches/cmake-bringup/ntoskrnl/include/internal/trap_x.h
Modified: branches/cmake-bringup/ntoskrnl/include/internal/ex.h URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/ntoskrnl/include/i... ============================================================================== --- branches/cmake-bringup/ntoskrnl/include/internal/ex.h [iso-8859-1] (original) +++ branches/cmake-bringup/ntoskrnl/include/internal/ex.h [iso-8859-1] Mon Nov 15 22:06:01 2010 @@ -1149,7 +1149,7 @@
/* 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);
Modified: branches/cmake-bringup/ntoskrnl/include/internal/trap_x.h URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/ntoskrnl/include/i... ============================================================================== --- branches/cmake-bringup/ntoskrnl/include/internal/trap_x.h [iso-8859-1] (original) +++ branches/cmake-bringup/ntoskrnl/include/internal/trap_x.h [iso-8859-1] Mon Nov 15 22:06:01 2010 @@ -21,6 +21,7 @@ #endif #elif _MSC_VER #define UNREACHABLE __assume(0) +#define __builtin_expect(a,b) (a) #else #define UNREACHABLE #endif