summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2015-04-11 16:50:44 +0200
committerJonas Suhr Christensen <jsc@umbraculum.org>2015-04-11 16:50:44 +0200
commit116995d58e0e1f4bb85f8dd10d7d07afe06e8f28 (patch)
treeeee2b61181996d8a5e2988e2b8bcc28e885407ca
parentaad47c980590f8f3a039a92a62f9d93f8755e060 (diff)
Fixed compile warnings.
-rw-r--r--src/cachemanager.cc2
-rw-r--r--src/cachemanager.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cachemanager.cc b/src/cachemanager.cc
index ca7fde1..c193db8 100644
--- a/src/cachemanager.cc
+++ b/src/cachemanager.cc
@@ -176,7 +176,7 @@ void CacheManager::loadNext(cacheid_t id)
{
m_caches.lock();
cache_t c = id2cache[id];
- sample_t *tmp;
+ sample_t *tmp = c.front;
c.front = c.back;
c.back = tmp;
id2cache[id] = c;
diff --git a/src/cachemanager.h b/src/cachemanager.h
index d2af6bf..e0bf7f9 100644
--- a/src/cachemanager.h
+++ b/src/cachemanager.h
@@ -144,7 +144,7 @@ private:
enum cmd_t {
LOADNEXT = 0,
- CLEAN = 1
+// CLEAN = 1
};
typedef struct {