mirror of
https://github.com/reactos/reactos.git
synced 2024-08-02 17:40:58 +00:00
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:
parent
06dbf1acc4
commit
b4e5e64c26
|
@ -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)
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue