[EXT2FS]
authorSylvain Petreolle <spetreolle@yahoo.fr>
Fri, 17 Oct 2014 19:27:29 +0000 (19:27 +0000)
committerSylvain Petreolle <spetreolle@yahoo.fr>
Fri, 17 Oct 2014 19:27:29 +0000 (19:27 +0000)
Properly fix warnings on MSVC, introduced in r38302.
"- 'allowwarnings=true' -- not anymore", they said.
Advice by ThFabba.

svn path=/trunk/; revision=64790

reactos/drivers/filesystems/ext2/inc/ext2fsd.h

index dcf35d9..42baa7f 100644 (file)
@@ -60,7 +60,7 @@ typedef unsigned char   BYTE;
 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 @@ extern Ext2Data                           Ext2GlobalData;
 
 #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 @@ extern Ext2Data                             Ext2GlobalData;
 }
 
 #else
-       #define DebugTrace( TYPE, X, Y ) 
+       #define DebugTrace( TYPE, X, Y )
        #define DebugTraceState( STR, X1, X2, X3 )
        #define AssertFCB( PtrFCB )
        #define AssertVCB( PtrVCB )