Fixed uninitialized variable warning with GCC4
authorThomas Bluemel <thomas@reactsoft.com>
Thu, 5 Jan 2006 22:24:28 +0000 (22:24 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Thu, 5 Jan 2006 22:24:28 +0000 (22:24 +0000)
svn path=/trunk/; revision=20593

reactos/ntoskrnl/include/internal/ex.h

index 714b97c..fa28e1a 100644 (file)
@@ -17,9 +17,10 @@ extern POBJECT_TYPE ExEventPairObjectType;
 
 /* Note: we only use a spinlock on SMP. On UP, we cli/sti intead */
 #ifndef CONFIG_SMP
-#define ExAcquireResourceLock(l, i) \
-    UNREFERENCED_PARAMETER(*i); \
-    Ke386DisableInterrupts();
+#define ExAcquireResourceLock(l, i) { \
+    (void)i; \
+    Ke386DisableInterrupts(); \
+}
 #define ExReleaseResourceLock(l, i) Ke386EnableInterrupts();
 #else
 #define ExAcquireResourceLock(l, i) KeAcquireSpinLock(l, i);