Author: spetreolle Date: Fri Oct 17 19:27:29 2014 New Revision: 64790
URL: http://svn.reactos.org/svn/reactos?rev=64790&view=rev Log: [EXT2FS] Properly fix warnings on MSVC, introduced in r38302. "- 'allowwarnings=true' -- not anymore", they said. Advice by ThFabba.
Modified: trunk/reactos/drivers/filesystems/ext2/inc/ext2fsd.h
Modified: trunk/reactos/drivers/filesystems/ext2/inc/ext2fsd.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ext2/in... ============================================================================== --- trunk/reactos/drivers/filesystems/ext2/inc/ext2fsd.h [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/ext2/inc/ext2fsd.h [iso-8859-1] Fri Oct 17 19:27:29 2014 @@ -60,7 +60,7 @@ extern Ext2Data Ext2GlobalData;
// try-finally simulation -#define try_return(S) { S; goto try_exit; } +#define try_return(...) { __VA_ARGS__; goto try_exit; } #define try_return1(S) { S; goto try_exit1; } #define try_return2(S) { S; goto try_exit2; }
@@ -119,10 +119,10 @@
#ifdef EXT2_POOL_WITH_TAG #define Ext2AllocatePool(PoolType,NumberOfBytes) \ - ExAllocatePoolWithTag( PoolType, NumberOfBytes, '2txE' ) + ExAllocatePoolWithTag( PoolType, NumberOfBytes, '2txE' ) #else #define Ext2AllocatePool(PoolType,NumberOfBytes) \ - ExAllocatePool( PoolType, NumberOfBytes ) + ExAllocatePool( PoolType, NumberOfBytes ) #endif
@@ -227,7 +227,7 @@ }
#else - #define DebugTrace( TYPE, X, Y ) + #define DebugTrace( TYPE, X, Y ) #define DebugTraceState( STR, X1, X2, X3 ) #define AssertFCB( PtrFCB ) #define AssertVCB( PtrVCB )