summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-13 01:55:34 +0000
committerDavid Robillard <d@drobilla.net>2012-08-13 01:55:34 +0000
commitd596ad7c12be64476afac95436a37813db014e69 (patch)
tree066eb95e25f73212265f5efff247eb9aae6aba54
parent4944976e40254bb57337e3544dc067133f140637 (diff)
downloadraul-d596ad7c12be64476afac95436a37813db014e69.tar.gz
raul-d596ad7c12be64476afac95436a37813db014e69.tar.bz2
raul-d596ad7c12be64476afac95436a37813db014e69.zip
Fix warnings.
git-svn-id: http://svn.drobilla.net/lad/trunk/raul@4675 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/SMFReader.cpp2
-rw-r--r--test/queue_test.cpp17
2 files changed, 2 insertions, 17 deletions
diff --git a/src/SMFReader.cpp b/src/SMFReader.cpp
index 6ab0f05..0474f88 100644
--- a/src/SMFReader.cpp
+++ b/src/SMFReader.cpp
@@ -16,8 +16,8 @@
#include <glib.h>
-#include <cstdio>
#include <cassert>
+#include <cstdio>
#include <cstring>
#include <string>
diff --git a/test/queue_test.cpp b/test/queue_test.cpp
index e4ad230..e894647 100644
--- a/test/queue_test.cpp
+++ b/test/queue_test.cpp
@@ -89,7 +89,7 @@ protected:
// Returns 0 if all read count/write count pairs are equal,
// otherwise how far off total count was
-unsigned
+static unsigned
data_is_sane()
{
unsigned ret = 0;
@@ -101,19 +101,6 @@ data_is_sane()
return ret;
}
-void
-dump_data()
-{
- for (unsigned i = 0; i < NUM_DATA; ++i) {
- cout << i << ":\t" << data[i].read_count.get()
- << "\t : \t" << data[i].write_count.get();
- if (data[i].read_count.get() == data[i].write_count.get())
- cout << "\t OK" << endl;
- else
- cout << "\t FAIL" << endl;
- }
-}
-
int
main()
{
@@ -211,8 +198,6 @@ main()
return EXIT_FAILURE;
}
- //dump_data();
-
return 0;
}