From b4e5e64c2691164889a6a148f3534b9311e42d70 Mon Sep 17 00:00:00 2001 From: "KJK::Hyperion" Date: Fri, 28 Nov 2008 14:33:21 +0000 Subject: [PATCH] ASSERT really needs to be void, despite what DDK headers might say. Fixes following warning: lib\rtl\srw.c: In function 'RtlAcquireSRWLockShared': lib\rtl\srw.c:498: error: statement with no effect lib\rtl\srw.c: In function 'RtlAcquireSRWLockExclusive': lib\rtl\srw.c:637: error: statement with no effect lib\rtl\srw.c:668: error: statement with no effect lib\rtl\srw.c:696: error: statement with no effect See issue #3922 for more details. svn path=/trunk/; revision=37704 --- reactos/include/ndk/rtlfuncs.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/reactos/include/ndk/rtlfuncs.h b/reactos/include/ndk/rtlfuncs.h index 612437aaad6..d1e16220858 100644 --- a/reactos/include/ndk/rtlfuncs.h +++ b/reactos/include/ndk/rtlfuncs.h @@ -195,14 +195,14 @@ RtlConvertUlongToLuid(ULONG Ulong) #if DBG #define ASSERT( exp ) \ - ((!(exp)) ? \ + ((void)((!(exp)) ? \ (RtlAssert( #exp, __FILE__, __LINE__, NULL ),FALSE) : \ - TRUE) + TRUE)) #define ASSERTMSG( msg, exp ) \ - ((!(exp)) ? \ + ((void)((!(exp)) ? \ (RtlAssert( #exp, __FILE__, __LINE__, msg ),FALSE) : \ - TRUE) + TRUE)) #else @@ -670,7 +670,7 @@ RtlWalkHeap( IN HANDLE HeapHandle, IN PVOID HeapEntry ); - + #define RtlGetProcessHeap() (NtCurrentPeb()->ProcessHeap) //