Mercurial > hg > sonic-annotator
diff runner/AudioDBFeatureWriter.cpp @ 138:ee56e3e9eeb5
Add -Werror in debug mode, and fix errors resulting from it
author | Chris Cannam |
---|---|
date | Mon, 13 Oct 2014 11:42:54 +0100 |
parents | 92911f967a16 |
children | b3d73c08b6ce |
line wrap: on
line diff
--- a/runner/AudioDBFeatureWriter.cpp Mon Oct 13 10:16:37 2014 +0100 +++ b/runner/AudioDBFeatureWriter.cpp Mon Oct 13 11:42:54 2014 +0100 @@ -99,7 +99,7 @@ } void AudioDBFeatureWriter::write(QString trackid, - const Transform &transform, + const Transform &, const Vamp::Plugin::OutputDescriptor& output, const Vamp::Plugin::FeatureList& featureList, std::string summaryType) @@ -135,8 +135,8 @@ if (output.binCount == 0) // this kind of feature just outputs timestamps and labels, assume of no interest to audioDB return; - for (int i = 0; i < featureList.size(); ++i) - { + for (int i = 0; i < (int)featureList.size(); ++i) { + // replace output files if necessary if (replaceDBFile(trackid, output.identifier)) { @@ -156,7 +156,7 @@ } if (dbfiles[output.identifier].ofs) { - for (int j = 0; j < featureList[i].values.size(); ++j) + for (int j = 0; j < (int) featureList[i].values.size(); ++j) *dbfiles[output.identifier].ofs /*<< ios::binary*/ << featureList[i].values[j]; // write the *end* time of each feature to the timestamp file