summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-12-10 17:10:42 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2016-12-10 17:10:42 +0100
commitd422bfddee23069071a5d911ebca73f6c0b403ed (patch)
treece10ee6112d07c4f4fa385797ab5c862666af50d
parent796882bcc5314c0bb095fcad0a6ffa30a6122bae (diff)
Fix warnings reported by clang.
-rw-r--r--drumgizmo/output/wavfile.h1
-rw-r--r--src/latencyfilter.cc2
-rw-r--r--src/latencyfilter.h2
-rw-r--r--src/powerlist.cc2
-rw-r--r--test/atomictest.cc1
5 files changed, 3 insertions, 5 deletions
diff --git a/drumgizmo/output/wavfile.h b/drumgizmo/output/wavfile.h
index 63bf0e4..bc14879 100644
--- a/drumgizmo/output/wavfile.h
+++ b/drumgizmo/output/wavfile.h
@@ -56,7 +56,6 @@ public:
private:
SF_INFO info;
std::vector<SNDFILE*> channels;
- std::size_t num_channels;
std::string file;
std::size_t latency;
diff --git a/src/latencyfilter.cc b/src/latencyfilter.cc
index b3ef44d..d83eab6 100644
--- a/src/latencyfilter.cc
+++ b/src/latencyfilter.cc
@@ -27,7 +27,7 @@
#include "latencyfilter.h"
LatencyFilter::LatencyFilter(Settings& settings)
- : settings(settings)
+ //: settings(settings)
{
}
diff --git a/src/latencyfilter.h b/src/latencyfilter.h
index bf4002e..e34b050 100644
--- a/src/latencyfilter.h
+++ b/src/latencyfilter.h
@@ -41,5 +41,5 @@ public:
std::size_t getLatency() const override;
private:
- Settings& settings;
+ //Settings& settings;
};
diff --git a/src/powerlist.cc b/src/powerlist.cc
index 94a63fa..9b0bd77 100644
--- a/src/powerlist.cc
+++ b/src/powerlist.cc
@@ -50,8 +50,6 @@ unsigned int const MIN_SAMPLE_SET_SIZE = 26u;
//#define AUTO_CALCULATE_POWER
unsigned int const SIZE = 500u;
-float const THRES = 1.f;
-
PowerList::PowerList(Random& rand)
: rand(rand)
{
diff --git a/test/atomictest.cc b/test/atomictest.cc
index aa1f12a..89c0295 100644
--- a/test/atomictest.cc
+++ b/test/atomictest.cc
@@ -69,6 +69,7 @@ class AtomicTest
void podAtomicCanBeDefaultInitialized() {
Atomic<int> i;
// note: i is initialized with garbage
+ (void)i; // prevent compiler 'unused' warning
}
void nonPodAtomicCanBeDefaultInitialized() {