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
This commit is contained in:
KJK::Hyperion 2008-11-28 14:33:21 +00:00
parent 06dbf1acc4
commit b4e5e64c26

View file

@ -195,14 +195,14 @@ RtlConvertUlongToLuid(ULONG Ulong)
#if DBG #if DBG
#define ASSERT( exp ) \ #define ASSERT( exp ) \
((!(exp)) ? \ ((void)((!(exp)) ? \
(RtlAssert( #exp, __FILE__, __LINE__, NULL ),FALSE) : \ (RtlAssert( #exp, __FILE__, __LINE__, NULL ),FALSE) : \
TRUE) TRUE))
#define ASSERTMSG( msg, exp ) \ #define ASSERTMSG( msg, exp ) \
((!(exp)) ? \ ((void)((!(exp)) ? \
(RtlAssert( #exp, __FILE__, __LINE__, msg ),FALSE) : \ (RtlAssert( #exp, __FILE__, __LINE__, msg ),FALSE) : \
TRUE) TRUE))
#else #else
@ -670,7 +670,7 @@ RtlWalkHeap(
IN HANDLE HeapHandle, IN HANDLE HeapHandle,
IN PVOID HeapEntry IN PVOID HeapEntry
); );
#define RtlGetProcessHeap() (NtCurrentPeb()->ProcessHeap) #define RtlGetProcessHeap() (NtCurrentPeb()->ProcessHeap)
// //