Fixed uninitialized variable warning with GCC4
Modified: trunk/reactos/ntoskrnl/include/internal/ex.h

Modified: trunk/reactos/ntoskrnl/include/internal/ex.h
--- trunk/reactos/ntoskrnl/include/internal/ex.h	2006-01-05 22:18:31 UTC (rev 20592)
+++ trunk/reactos/ntoskrnl/include/internal/ex.h	2006-01-05 22:24:28 UTC (rev 20593)
@@ -17,9 +17,10 @@
 
 /* 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);