diff runner/DefaultFeatureWriter.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/DefaultFeatureWriter.cpp	Mon Oct 13 10:16:37 2014 +0100
+++ b/runner/DefaultFeatureWriter.cpp	Mon Oct 13 11:42:54 2014 +0100
@@ -20,8 +20,8 @@
 
 #include "DefaultFeatureWriter.h"
 
-void DefaultFeatureWriter::write(QString trackid,
-                                 const Transform &transform,
+void DefaultFeatureWriter::write(QString,
+                                 const Transform &,
                                  const Vamp::Plugin::OutputDescriptor& output,
                                  const Vamp::Plugin::FeatureList& featureList,
                                  std::string summaryType)
@@ -39,8 +39,8 @@
      
      */
     
-    for (int i = 0; i < featureList.size(); ++i)
-    {
+    for (int i = 0; i < (int)featureList.size(); ++i) {
+
         if (summaryType == "") {
             cout << "<feature>" << endl;
         } else {
@@ -56,8 +56,7 @@
         if (featureList[i].values.size() > 0)
         {
             cout << "\t<values>";
-            for (int j = 0; j < featureList[i].values.size(); ++j)
-            {
+            for (int j = 0; j < (int)featureList[i].values.size(); ++j) {
                 if (j > 0)
                     cout << " ";
                 if (output.binNames.size() > 0)