From 512db09866a2283d0a2a2fb0e921f3322e3b5074 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Sat, 27 Aug 2011 14:28:21 -0700 Subject: [PATCH] remove compiler warnings --- include/metalsvm/spinlock.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/metalsvm/spinlock.h b/include/metalsvm/spinlock.h index a71be6be..bba4325a 100644 --- a/include/metalsvm/spinlock.h +++ b/include/metalsvm/spinlock.h @@ -80,7 +80,7 @@ inline static int spinlock_destroy(spinlock_t* s) { * - -EINVAL (-22) on failure */ inline static int spinlock_lock(spinlock_t* s) { - int32_t ticket; + //int32_t ticket; task_t* curr_task; if (BUILTIN_EXPECT(!s, 0)) @@ -172,7 +172,7 @@ inline static int spinlock_irqsave_destroy(spinlock_irqsave_t* s) { */ inline static int spinlock_irqsave_lock(spinlock_irqsave_t* s) { uint32_t flags; - int32_t ticket; + //int32_t ticket; if (BUILTIN_EXPECT(!s, 0)) return -EINVAL;