[KMTEST]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Sun, 10 May 2015 17:37:54 +0000 (17:37 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Sun, 10 May 2015 17:37:54 +0000 (17:37 +0000)
Hey Arch, if you turn warnings into errors, make sure to fix the warnings before!

svn path=/trunk/; revision=67626

rostests/kmtests/ntos_ke/KeSpinLock.c

index dc2e944..30838b3 100644 (file)
@@ -166,6 +166,7 @@ BOOLEAN TryNoRaise(PKSPIN_LOCK SpinLock, PCHECK_DATA CheckData) {
 #define CheckSpinLockLock(SpinLock, CheckData, Value) do                            \
 {                                                                                   \
     PKTHREAD Thread = KeGetCurrentThread();                                         \
+    UNREFERENCED_LOCAL_VARIABLE(Thread);                                            \
     if (KmtIsMultiProcessorBuild)                                                   \
     {                                                                               \
         ok_eq_bool(Ret, (Value) == 0);                                              \